﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f0f8;
    overflow-x: hidden;
    position: relative;
}

/* ===== HEADER ===== */
.login-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.header-exam-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-exam-sub {
    font-size: 10px;
    opacity: 0.75;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

    .header-info i {
        font-size: 13px;
    }

/* ===== DECORATIVE BACKGROUND ===== */
.bg-decorator {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Grid squares - center left */
.deco-grid {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .deco-grid span {
        width: 52px;
        height: 52px;
        background: rgba(139, 92, 246, 0.10);
        border-radius: 12px;
    }

/* Grid squares 2 - top right */
.deco-grid-2 {
    position: absolute;
    top: 12%;
    right: 7%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

    .deco-grid-2 span {
        width: 28px;
        height: 28px;
        background: rgba(139, 92, 246, 0.08);
        border-radius: 6px;
    }

/* Circle - top left */
.deco-circle-1 {
    position: absolute;
    top: 14%;
    left: 10%;
    width: 70px;
    height: 70px;
    border: 3px solid rgba(139, 92, 246, 0.10);
    border-radius: 50%;
}

/* Circle 2 - center right */
.deco-circle-2 {
    position: absolute;
    top: 45%;
    right: 9%;
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 50%;
}

/* Circle 3 - bottom left small filled */
.deco-circle-3 {
    position: absolute;
    bottom: 22%;
    left: 12%;
    width: 24px;
    height: 24px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 50%;
}

/* Compass - bottom right */
.deco-compass {
    position: absolute;
    bottom: 10%;
    right: 6%;
    width: 110px;
    height: 110px;
    opacity: 0.08;
}

    .deco-compass::before {
        content: '';
        position: absolute;
        width: 80px;
        height: 80px;
        border: 3px solid #8b5cf6;
        border-radius: 50%;
        top: 15px;
        left: 15px;
    }

    .deco-compass::after {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-bottom: 50px solid #8b5cf6;
        top: 0;
        left: 43px;
    }

/* Dots pattern - bottom left */
.deco-dots {
    position: absolute;
    bottom: 6%;
    left: 4%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

    .deco-dots span {
        width: 4px;
        height: 4px;
        background: rgba(139, 92, 246, 0.13);
        border-radius: 50%;
    }

/* Dots 2 - top center-right */
.deco-dots-2 {
    position: absolute;
    top: 20%;
    right: 25%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .deco-dots-2 span {
        width: 4px;
        height: 4px;
        background: rgba(139, 92, 246, 0.10);
        border-radius: 50%;
    }

/* Lines - top left */
.deco-lines {
    position: absolute;
    top: 30%;
    left: 3%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .deco-lines span {
        height: 2px;
        background: rgba(139, 92, 246, 0.08);
        border-radius: 2px;
    }

        .deco-lines span:nth-child(1) {
            width: 40px;
        }

        .deco-lines span:nth-child(2) {
            width: 60px;
        }

        .deco-lines span:nth-child(3) {
            width: 30px;
        }

/* Lines 2 - bottom right */
.deco-lines-2 {
    position: absolute;
    bottom: 30%;
    right: 3%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

    .deco-lines-2 span {
        height: 2px;
        background: rgba(139, 92, 246, 0.08);
        border-radius: 2px;
    }

        .deco-lines-2 span:nth-child(1) {
            width: 30px;
        }

        .deco-lines-2 span:nth-child(2) {
            width: 50px;
        }

        .deco-lines-2 span:nth-child(3) {
            width: 20px;
        }

/* Diamond - top center */
.deco-diamond {
    position: absolute;
    top: 8%;
    left: 35%;
    width: 20px;
    height: 20px;
    background: rgba(139, 92, 246, 0.08);
    transform: rotate(45deg);
    border-radius: 3px;
}

/* Plus sign - bottom center */
.deco-plus {
    position: absolute;
    bottom: 15%;
    left: 40%;
    font-size: 30px;
    color: rgba(139, 92, 246, 0.08);
    font-weight: 300;
}

/* ===== MAIN CONTENT ===== */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

    .login-card h2 {
        text-align: center;
        font-size: 24px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 6px;
    }

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 28px;
}

/* Form fields */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s;
}

    .field-input-wrap:focus-within {
        border-color: #8b5cf6;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
        background: #fff;
    }

.field-icon {
    padding: 0 0 0 14px;
    color: #94a3b8;
    font-size: 16px;
    flex-shrink: 0;
}

.field-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
}

    .field-input-wrap input::placeholder {
        color: #b0bec5;
    }

.toggle-pw {
    padding: 0 14px 0 0;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

    .toggle-pw:hover {
        color: #64748b;
    }


/* Login button */
.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    }

    .login-btn i {
        font-size: 15px;
    }

/* Change password link */
.switch-link {
    text-align: center;
    margin-top: 16px;
}

    .switch-link a {
        font-size: 12px;
        color: #8b5cf6;
        text-decoration: none;
        font-weight: 500;
    }

        .switch-link a:hover {
            text-decoration: underline;
        }

/* Security note */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

    .security-note i {
        color: #8b5cf6;
        font-size: 13px;
    }

    .security-note span {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #94a3b8;
    }

/* ===== FOOTER (dark info bar) ===== */
.login-footer {
    background: #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 24px;
    font-size: 9px;
    min-height: 25px;
    border-top: 1px solid #334155;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.footer-left {
    display: flex;
    gap: 24px;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 8px;
}

    .footer-center .footer-logo {
        width: 19px;
        height: 19px;
        background: rgba(139, 92, 246, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        color: #c4b5fd;
        font-weight: 700;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-header {
        padding: 8px 16px;
    }

    .header-exam-name {
        font-size: 12px;
    }

    .header-exam-sub {
        font-size: 9px;
    }

    .header-right {
        gap: 10px;
        font-size: 10px;
    }

    .header-logo {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 24px;
        border-radius: 12px;
    }

        .login-card h2 {
            font-size: 20px;
        }

    .deco-grid span {
        width: 32px;
        height: 32px;
    }

    .deco-grid {
        left: 3%;
        gap: 6px;
    }

    .deco-grid-2 {
        display: none;
    }

    .deco-compass {
        display: none;
    }

    .login-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 16px;
        padding: 4px 10px;
        text-align: center;
        min-height: auto;
        font-size: 7px;
    }

    .footer-left {
        gap: 10px;
    }

    .footer-center {
        font-size: 7px;
        gap: 4px;
        width: 100%;
        justify-content: center;
        order: -1;
        padding-bottom: 2px;
        border-bottom: 1px solid #334155;
    }

        .footer-center .footer-logo {
            width: 14px;
            height: 14px;
            font-size: 6px;
        }

    .login-header {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
    }

    .header-right {
        font-size: 9px;
        gap: 12px;
    }
}
