::selection {
  background-color: #ed2e4d; /* your custom green */
  color:             #fff;    /* #e2e2e3 text */
}
::-moz-selection {
  background-color: #ed2e4d;
  color:             #fff;
}

/* make sure dark-mode (data-bs-theme="dark") still uses the same style */
[data-bs-theme="dark"] ::selection {
  background-color: #1d5349 !important;
  color:             #fff    !important;
}
[data-bs-theme="dark"] ::-moz-selection {
  background-color: #1d5349 !important;
  color:             #fff    !important;
}/* Global styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrolling issues */
}

body {
    background-color: #98c5a8;
    position: relative;
}

/* —————————————————————
   OAuth “provider” button
   ————————————————————— */
.oauth-buttons {
    text-align: center;
}

.oauth-buttons .hr-text {
    margin: 20px 0;
    color: #6c757d;
}

.oauth-buttons .btn-provider {
    display: flex;                     /* full-width flexbox */
    align-items: center;
    justify-content: center;
    width: 100%;                       /* fill the container */
    box-sizing: border-box;            /* include border in width */
    padding: 14px;
    background-color: #6d70f9 !important;         /* Discord blue */
    color: #e2e2e3;
    font-weight: bold;
    font-size: 18px;
	border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
    gap: 10px;
    transition: transform 0.2s ease,      /* smooth lift */
                box-shadow 0.2s ease,
                background-color 0.2s ease;
}

.oauth-buttons .btn-provider:hover {
    background-color: #6d70f9 !important;         /* darker hover */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Hide powered_by_leaderos */
#powered_by_leaderos {
    opacity: 0 !important;
}

/* Crown container for background crowns */
.crown-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1; /* Lower than the card-login */
}

/* Crown styling and animation */
.crown {
    position: absolute;
    width: 40px;
    opacity: 1;
    filter: brightness(0.7);
    animation: moveCrown 20s infinite alternate linear;
}

/* Random positioning for multiple crowns */
.crown:nth-child(1) { left: 5%; top: 10%; width: 50px; opacity: 0.2; animation-duration: 6s; }
.crown:nth-child(2) { left: 20%; top: 30%; width: 40px; opacity: 0.15; animation-duration: 12s; }
.crown:nth-child(3) { left: 50%; top: 50%; width: 60px; opacity: 0.25; animation-duration: 8s; }
.crown:nth-child(4) { left: 75%; top: 20%; width: 55px; opacity: 0.18; animation-duration: 15s; }
.crown:nth-child(5) { left: 90%; top: 70%; width: 45px; opacity: 0.22; animation-duration: 10s; }
/* Continue for additional crowns if needed */

@keyframes moveCrown {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(50px, 100px) rotate(45deg); }
    50%  { transform: translate(-30px, -50px) rotate(90deg); }
    75%  { transform: translate(100px, -30px) rotate(180deg); }
    100% { transform: translate(-50px, 70px) rotate(360deg); }
}

/* Login card styles */
.card-login {
    width: 500px;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff !important; /* Solid #e2e2e3 background */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative; /* Creates its own stacking context */
    z-index: 10;        /* Sits above the crown-container */
    opacity: 1 !important;
    margin: -2% 0 0 -5.3%;
}

/* Auth logo */
.auth-logo {
    width: 30%;
    height: auto;
    max-height: 400px;
    margin-top: 15%;
    transition: transform 0.3s ease;
    z-index: 10 !important;
}

/* ──────────── Vertical support for shorter viewports ──────────── */
/* only apply below 1024px tall */
@media (max-height: 840px) {
  .card-login {
    /* ditch the old negative‐margin hack */
    margin: 0 auto;
    /* absolutely position it from the top instead */
    position: absolute;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
  }
  
}

/* even shorter screens — pull it up more */
@media (max-height: 800px) {
  .card-login {
    top: 5vh;
  }
}

/* very low screens — minimal top offset + hide the crowns */
@media (max-height: 600px) {
  .card-login {
    top: 2vh;
  }
  .crown-container {
    display: none;
  }
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    .card-login {
        width: 95%;
        padding: 20px;
        margin-left: 10px;
    }
    .card-login-body h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .input-field {
        padding: 12px;
        font-size: 14px;
    }
    .btn-login,
    .btn-provider {
        font-size: 14px;
        padding: 12px;
    }
}



/* Input wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Input fields */
.input-field {
    width: 100%;
    padding: 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    background: #f8f9fa;
    margin-bottom: 15px;
    padding-right: 100px;
    color: #1d5349;
}

.input-field::placeholder {
    color: #2b8d7a !important;
    opacity: 1;
    font-size: 16px;
}

/* Forgot password link */
.forgot-password {
    position: absolute;
    right: 10px;
    top: 39%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6eada2;
    text-decoration: none;
    #e2e2e3-space: nowrap;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Card header and body texts */
.card-login-header {
    margin-bottom: 20px;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    text-transform: uppercase;
}

.card-login-body h2 {
    font-weight: bold;
    margin-bottom: 40px;
    font-size: 28px;
    color: #1d5349;
    margin-top: 20px;
}

.card-login-body p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Remember me styling */
.remember-me {
    display: flex !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 10px !important;
    font-size: 16px !important;
    color: #1d5349 !important;
    cursor: pointer !important;
    margin: 15px 0 !important;
}

.remember-me input[type="checkbox"] {
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #1d5349 !important;
    background-color: transparent !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}

.remember-me input[type="checkbox"]:checked {
    background-color: green !important;
    border: 2px solid #153d36 !important;
    transform: scale(1.1) !important;
    animation: bounce 0.3s ease-in-out;
}

@keyframes bounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.remember-me input[type="checkbox"]::before {
    content: "✔" !important;
    font-size: 14px !important;
    color: #e2e2e3 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    transition: transform 0.2s ease-in-out !important;
}

.remember-me input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 14px;
    margin-bottom: 5px;
    background-color: #2cb069;
    color: #e2e2e3;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-login:hover {
    background-color: #24955a;
}

/* Registration link */
.register-link {
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
}

.register-link span {
    color: #1d5349;
}

.register-link a {
    color: var(--tblr-primary);
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    color: #26864c;
    text-decoration: underline;
}

/* Hover effect on logo */
.auth-logo:hover {
    transform: translateY(-10px) scale(1.1);
    background: transparent;
}

.text-center {
    color: #1d5349 !important;
}

.auth-layout-fix {
    display: block !important;
    height: auto !important;
    min-height: 100vh;
    width: auto !important;
    opacity: 1;
}

/* Center the page */
.page-center {
    display: block !important;
    margin: auto;
    text-align: center;
}

/* DARK MODE SECTION */
[data-bs-theme="dark"] .card-login {
    background-color: #24262b !important;
    opacity: 1 !important;
    filter: none !important;
    color: #ffffff;
    border: 1px solid #444;
    z-index: 10;
    border: none;
}

[data-bs-theme="dark"] .card-login-body {
    background-color: transparent;
    color: #ffffff;
}

[data-bs-theme="dark"] .login-form {
    background-color: transparent;
    color: #ffffff;
}

[data-bs-theme="dark"] .input-field {
    background-color: #212224 !important;
    color: #ffffff;
    border: 1px solid #444444;
}

[data-bs-theme="dark"] .input-field::placeholder {
    color: #888888;
}

[data-bs-theme="dark"] .input-wrapper a.forgot-password {
    color: #ff6b6b;
}

[data-bs-theme="dark"] .btn-login {
    background-color: #008f5e !important;
    color: #ffffff;
    border: none;
}

[data-bs-theme="dark"] .btn-login:hover {
    background-color: #2cb069 !important;
}

[data-bs-theme="dark"] .btn-provider,
[data-bs-theme="dark"] .btn-provider:hover {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .register-link a {
    color: #adadb0 !important;
}

[data-bs-theme="dark"] .register-link:hover a {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .register-link {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .text-center .mb-4 {
    display: none !important;
    color: transparent !important;
}

[data-bs-theme="dark"] .forgot-password {
    color: #adadb0 !important;
}

[data-bs-theme="dark"] .forgot-password:hover {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .auth-logo {
    position: relative;           /* Create a stacking context */
    z-index: 11;                  /* Above the card-login (z-index: 10) */
}

[data-bs-theme="dark"] body {
    background-color: #24262b !important;
}

[data-bs-theme="dark"] .remember-me {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .oauth-buttons .btn-provider {
    display: flex;                     /* full-width flexbox */
    align-items: center;
    justify-content: center;
    width: 100%;                       /* fill the container */
    box-sizing: border-box;            /* include border in width */
    padding: 14px;
    background-color: #6d70f9 !important;         /* Discord blue */
    color: #e2e2e3;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
    gap: 10px;
    transition: transform 0.2s ease,      /* smooth lift */
                box-shadow 0.2s ease,
                background-color 0.2s ease;
}

[data-bs-theme="dark"] .oauth-buttons .btn-provider:hover {
    background-color: #6d70f9 !important;         /* darker hover */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}


.btn-provider img[src$="discord.svg"] {
  filter: brightness(0) invert(1) !important;
}
