@font-face {
    font-family: 'DSEG7-Classic';
    src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff') format('woff'),
         url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #e9edf5;
    --text-dark: #1c2541;
    --text-muted: #6b7385;
    --accent: #4c5fd5;
    --accent-soft: rgba(76, 95, 213, .14);
    --shadow-dark: rgba(163, 177, 198, .55);
    --shadow-light: rgba(255, 255, 255, .95);
    --success: #2fa75a;
    --danger: #d34646;
    --warning: #e0ab1f;
    --info: #3aa0c9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    font-family: 'Inter', Arial, sans-serif;
    padding: 20px;
}

/* ===== CARD ===== */
.card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 28px;
    background: var(--bg);
    box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
    border: 1px solid azure;
}

/* ===== BADGE ===== */
.badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    border: 1px solid azure;
}

.badge svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
}

/* ===== HEADINGS ===== */
h1 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 26px;
    font-size: 14px;
}

/* ===== INPUT FIELD ===== */
.field-wrap {
    position: relative;
    margin-bottom: 16px;
}

.field-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.input {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 48px 14px 42px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-dark);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    box-shadow: inset 8px 8px 14px var(--shadow-dark), inset -8px -8px 14px var(--shadow-light), inset 2px 2px 4px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease;
    border: 1px solid azure;
}

.input::placeholder {
    color: #98a0b3;
}

.input:focus {
    box-shadow: inset 8px 8px 14px var(--shadow-dark), inset -8px -8px 14px var(--shadow-light), inset 2px 2px 4px rgba(0, 0, 0, .06), 0 0 0 2px var(--accent-soft);
}

/* ===== PASSWORD TOGGLE ===== */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 8px;
    z-index: 2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.9);
}

.toggle-password svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* ===== CLOCK ===== */
.premium-clock {
    margin-bottom: 18px;
    text-align: center;
    padding: 14px 12px;
    border-radius: 14px;
    background: var(--bg);
    box-shadow: inset 7px 7px 13px var(--shadow-dark), inset -7px -7px 13px var(--shadow-light);
}

.clock-label {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lcd-screen {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #10131c;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .7), inset -1px -1px 2px rgba(255, 255, 255, .04);
    border: 1px solid azure;
}

.lcd-time-wrap {
    position: relative;
}

.lcd-ghost,
#clockTime {
    font-family: 'DSEG7-Classic', 'Inter', monospace;
    font-size: 26px;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1;
}

.lcd-ghost {
    color: rgba(125, 252, 255, .08);
    user-select: none;
}

#clockTime {
    position: absolute;
    left: 0;
    top: 0;
    color: #d6fdff;
    text-shadow: 0 0 4px #7dfcff, 0 0 10px #2dd9e6, 0 0 22px rgba(45, 217, 230, .55);
}

.lcd-ampm {
    margin-left: 8px;
    align-self: flex-end;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: yellow;
    text-shadow: 0 0 6px rgba(125, 252, 255, .6);
    opacity: .9;
}

/* ===== CAPTCHA ===== */
.captcha-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.captcha-box {
    flex: 1;
    text-align: center;
    padding: 5px;
    border-radius: 12px;
    font-family: 'Inter', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #3a2740;
    background: linear-gradient(rgba(233, 237, 245, .35), rgba(233, 237, 245, .35)), url('../../auth/bg6.png') center center/cover no-repeat;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .45);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light), inset 0 0 0 1px rgba(255, 255, 255, .3);
    transition: opacity .15s ease;
    border: 1px solid azure;
}

.captcha-box.loading {
    opacity: .45;
}

.refresh-btn {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    font-size: 20px;
    color: var(--text-dark);
    background: var(--bg);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transition: box-shadow .2s ease, transform .4s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid azure;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.refresh-btn:active {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

/* ===== LOGIN BUTTON ===== */
.login-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    margin-top: 4px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--text-dark);
    background: var(--bg);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light), 4px 4px 8px var(--shadow-dark);
    transition: box-shadow .2s ease, transform .15s ease, color .2s ease;
    border: 1px solid azure;
}

.login-btn:hover {
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light), 5px 5px 10px var(--shadow-dark);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== LINKS ===== */
.links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.links a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    transition: opacity .15s ease;
}

.links a:hover {
    opacity: .75;
    text-decoration: underline;
}

.forgot {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 13px;
}

/* ===== MESSAGE BUBBLE ===== */
.message-container {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    color: #fff;
    position: relative;
    box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
    width: 100%;
    word-wrap: break-word;
    text-align: left;
}

.message-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 12px;
    border-width: 10px 10px 0;
    border-style: solid;
}

.message-bubble.success {
    background: linear-gradient(135deg, var(--success), #1e8a4a);
}
.message-bubble.success::before {
    border-color: #1e8a4a transparent;
}

.message-bubble.danger {
    background: linear-gradient(135deg, var(--danger), #b33030);
}
.message-bubble.danger::before {
    border-color: #b33030 transparent;
}

.message-bubble.warning {
    background: linear-gradient(135deg, var(--warning), #c4941a);
}
.message-bubble.warning::before {
    border-color: #c4941a transparent;
}

.message-bubble.info {
    background: linear-gradient(135deg, var(--info), #2d8ab3);
}
.message-bubble.info::before {
    border-color: #2d8ab3 transparent;
}

.message-container.hide {
    animation: fadeOutUp 0.5s ease forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        display: none;
    }
}

/* ===== PASSWORD STRENGTH ===== */
.error-msg {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.strength {
    height: 6px;
    background: #ddd;
    margin-bottom: 10px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.strength span {
    display: block;
    height: 100%;
    width: 0;
    transition: .3s;
}

/* ===== DECLARATION ===== */
.declaration-box {
    margin: 15px 0;
    font-size: 12px;
    color: #555;
}

/* ===== BLOCKED MESSAGE ===== */
.blocked-message {
    text-align: center;
    padding: 30px 20px;
}

.blocked-message i {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 15px;
    display: block;
}

.blocked-message h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.blocked-message p {
    color: var(--text-muted);
}

/* ===== CAPTCHA INPUT ===== */
.captcha-input {
    padding-left: 42px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px 28px;
        border-radius: 22px;
    }
    h1 {
        font-size: 20px;
    }
    .login-btn {
        padding: 14px;
    }
    .lcd-ghost,
    #clockTime {
        font-size: 22px;
    }
    .input {
        padding: 12px 44px 12px 38px;
        font-size: 14px;
    }
    .toggle-password {
        right: 8px;
        padding: 6px;
    }
    .toggle-password svg {
        width: 18px;
        height: 18px;
    }
}
        .label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 6px;
            letter-spacing: 0.3px;
        }
        
        .label .required {
            color: var(--danger);
            margin-left: 2px;
        }
        
        .input-group {
            margin-bottom: 18px;
        }
        
        .password-rules {
            background: var(--bg);
            border-radius: 10px;
            padding: 12px 16px;
            margin-top: 8px;
            font-size: 12px;
            box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
            border: 1px solid azure;
        }
        
        .password-rules ul {
            list-style: none;
            padding: 0;
            margin: 5px 0 0 0;
        }
        
        .password-rules ul li {
            padding: 3px 0;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .password-rules ul li .rule-icon {
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 11px;
            color: #fff;
            background: #ddd;
            transition: all 0.3s ease;
        }
        
        .password-rules ul li.valid .rule-icon {
            background: var(--success);
        }
        
        .password-rules ul li.invalid .rule-icon {
            background: var(--danger);
        }
        
        .password-rules ul li.valid {
            color: var(--success);
        }
        
        .password-rules ul li.invalid {
            color: var(--danger);
        }
        
        .password-strength-text {
            font-size: 12px;
            font-weight: 600;
            margin-top: 4px;
            text-align: right;
        }
        
        .strength-weak { color: var(--danger); }
        .strength-medium { color: var(--warning); }
        .strength-strong { color: var(--success); }
        
        .input-wrapper {
            position: relative;
        }
        
        .input-wrapper .input {
            padding-right: 45px;
        }
        
        .toggle-password-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            padding: 5px;
            border-radius: 6px;
            transition: all 0.2s ease;
        }
        
        .toggle-password-btn:hover {
            color: var(--accent);
            background: var(--accent-soft);
        }
        
        .toggle-password-btn svg {
            width: 18px;
            height: 18px;
        }
        
        .declaration-box {
            margin: 15px 0;
            font-size: 13px;
            color: var(--text-muted);
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        
        .declaration-box input[type="checkbox"] {
            margin-top: 2px;
            width: 16px;
            height: 16px;
            cursor: pointer;
            accent-color: var(--accent);
        }
        
        .declaration-box label {
            cursor: pointer;
            line-height: 1.5;
        }
        
        .declaration-box label a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
        }
        
        .declaration-box label a:hover {
            text-decoration: underline;
        }
        
        .error-msg {
            color: var(--danger);
            font-size: 12px;
            margin-top: 5px;
            display: none;
            font-weight: 500;
        }
        
        .error-msg.show {
            display: block;
        }
        
        .input.error {
            border: 2px solid var(--danger) !important;
            box-shadow: inset 8px 8px 14px var(--shadow-dark), inset -8px -8px 14px var(--shadow-light), 0 0 0 2px rgba(211, 70, 70, 0.2) !important;
        }
        
        .input.success {
            border: 2px solid var(--success) !important;
            box-shadow: inset 8px 8px 14px var(--shadow-dark), inset -8px -8px 14px var(--shadow-light), 0 0 0 2px rgba(47, 167, 90, 0.2) !important;
        }
        
        @media (max-width: 480px) {
            .password-rules {
                font-size: 11px;
                padding: 10px 12px;
            }
            .password-rules ul li {
                padding: 2px 0;
            }
        }