/* =============================================
   IMGHOST.DEV — MODERN DARK THEME
   Login / Signup / Forgot password override
   ============================================= */

body#login {
    background: #07070f;
    min-height: 100vh;
    overflow: hidden;
}

body#login .background-cover {
    display: none;
}

body#login .display-flex.height-min-full {
    display: block !important;
}

/* --- Wrapper --- */
.login-dark-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* --- Animated background blobs --- */
.login-dark-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: blobFloat 10s ease-in-out infinite;
}

.login-blob-1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.45), transparent 70%);
    top: -140px;
    left: -100px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.login-blob-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.35), transparent 70%);
    bottom: -80px;
    right: -80px;
    animation-duration: 9s;
    animation-delay: -4s;
}

.login-blob-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.25), transparent 70%);
    top: 55%;
    left: 55%;
    animation-duration: 14s;
    animation-delay: -7s;
}

@keyframes blobFloat {
    0%,  100% { transform: translate(0px,   0px)  scale(1);    }
    33%        { transform: translate(28px, -28px) scale(1.06); }
    66%        { transform: translate(-18px, 18px) scale(0.94); }
}

/* --- Glassmorphism card --- */
.login-dark-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px 44px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* --- Brand / Logo --- */
.login-dark-logo {
    margin-bottom: 36px;
}

.login-dark-logo a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.login-dark-logo a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Heading --- */
.login-dark-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.login-dark-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* --- Form --- */
.login-dark-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.login-dark-field {
    position: relative;
}

.login-dark-input {
    width: 100%;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    color: #fff !important;
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none !important;
    height: auto !important;
    margin: 0 !important;
}

.login-dark-input::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
}

.login-dark-input:focus {
    border-color: rgba(139, 92, 246, 0.55) !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.12),
        0 0 22px rgba(139, 92, 246, 0.08) !important;
}

/* Autofill dark override */
.login-dark-input:-webkit-autofill,
.login-dark-input:-webkit-autofill:hover,
.login-dark-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #12102a inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Submit button --- */
.login-dark-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.38);
    margin-top: 6px;
}

.login-dark-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.login-dark-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 14px rgba(124, 58, 237, 0.3);
}

.login-dark-btn-arrow {
    font-style: normal;
    font-size: 17px;
    transition: transform 0.2s;
    line-height: 1;
}

.login-dark-btn:hover .login-dark-btn-arrow {
    transform: translateX(4px);
}

/* --- Bottom links --- */
.login-dark-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 28px;
}

.login-dark-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.login-dark-link:hover {
    color: rgba(167, 139, 250, 0.9);
}

/* --- Social / OAuth providers --- */
body#login .margin-top-30.margin-bottom-30 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

body#login .or-separator {
    background: rgba(255, 255, 255, 0.08) !important;
    position: relative;
    height: 1px !important;
    margin: 0 !important;
}

body#login .or-separator span {
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body#login .content-section {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-bottom: 10px;
}

body#login .social-icons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px !important;
}

body#login .login-provider-button {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 18px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-align: left !important;
}

body#login .login-provider-button:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* --- Top-left hamburger menu --- */
body#login {
    --menuBackground: rgba(12, 11, 22, 0.97);
    --menuText: rgba(255, 255, 255, 0.82);
    --menuBorder: rgba(255, 255, 255, 0.09);
    --menuSeparator: rgba(255, 255, 255, 0.08);
    --linkText: rgba(255, 255, 255, 0.82);
}

body#login #top-left .top-button-icon {
    color: rgba(255, 255, 255, 0.5) !important;
    text-shadow: none;
}

body#login #top-left .top-button-icon:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

body#login #top-left .pop-box.menu-box {
    background: rgba(12, 11, 22, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px !important;
}

body#login #top-left .pop-box a,
body#login #top-left .pop-box a .text,
body#login #top-left .pop-box a .icon {
    color: rgba(255, 255, 255, 0.82) !important;
}

body#login #top-left .pop-box a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body#login #top-left .pop-box a:hover,
body#login #top-left .pop-box a:hover .text,
body#login #top-left .pop-box a:hover .icon {
    color: #ffffff !important;
}

/* --- reCAPTCHA dark --- */
body#login .g-recaptcha > div {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Icon badge (forgot password) --- */
.login-dark-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-dark-icon-badge i {
    font-size: 20px;
    color: rgba(167, 139, 250, 0.9);
}

/* --- Field error messages --- */
.login-dark-field-error {
    font-size: 12px;
    color: rgba(248, 113, 113, 0.9);
    margin-top: 6px;
    padding-left: 4px;
    text-align: left;
}

.login-dark-error {
    color: rgba(248, 113, 113, 0.85) !important;
}

/* --- Password strength bar --- */
.login-dark-password-strength {
    margin-top: 8px;
}

.login-dark-password-strength .input-password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
}

.login-dark-password-strength .input-password-strength span {
    display: block;
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

/* --- Checkboxes --- */
.login-dark-checkbox-row {
    text-align: left;
    margin-top: 2px;
}

.login-dark-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.login-dark-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.login-dark-checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    margin-top: 1px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-dark-checkbox-label input[type="checkbox"]:checked + .login-dark-checkbox-custom {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-color: #7c3aed;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.login-dark-checkbox-label input[type="checkbox"]:checked + .login-dark-checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.login-dark-checkbox-label:hover .login-dark-checkbox-custom {
    border-color: rgba(139, 92, 246, 0.5);
}

.login-dark-checkbox-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.login-dark-checkbox-text a {
    color: rgba(167, 139, 250, 0.8);
    text-decoration: none;
}

.login-dark-checkbox-text a:hover {
    color: rgba(167, 139, 250, 1);
}

/* --- Card footer (donate + language) --- */
.login-dark-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Donate button */
.login-dark-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(79, 70, 229, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: rgba(167, 139, 250, 0.95) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.4px;
    cursor: default;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    animation: supportPulse 3s ease-in-out infinite;
}

.login-dark-support-btn i {
    font-size: 12px;
    color: rgba(248, 113, 113, 0.9);
}

.login-dark-support-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(79, 70, 229, 0.26));
    border-color: rgba(139, 92, 246, 0.65);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.3);
    animation: none;
}

@keyframes supportPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
    50%       { box-shadow: 0 0 16px 4px rgba(124, 58, 237, 0.25); }
}

/* Language selector */
.login-dark-lang-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.login-dark-lang-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

body#login .login-dark-lang-select,
html body#login .login-dark-lang-select {
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
    padding: 8px 32px 8px 12px !important;
    height: auto !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.2s, color 0.2s;
}

body#login .login-dark-lang-select:hover,
body#login .login-dark-lang-select:focus {
    border-color: rgba(139, 92, 246, 0.5) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body#login .login-dark-lang-select option {
    background: #0f0e1e !important;
    color: rgba(255, 255, 255, 0.85) !important;
}
