/* ===== Login V2 — Cosmos Theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&amp;display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Layout ===== */

.rep_page {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background: #FAFBFC;
}

.rep_left {
    width: 60%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0B1120;
    transition: background 0.6s ease;
}

.rep_left canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.rep_right {
    width: 40%;
    min-height: 100vh;
    background: #FAFBFC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* ===== Branding ===== */

.rep_brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    max-width: 520px;
}

.rep_logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: rep_fadeIn 0.8s ease forwards;
    filter: drop-shadow(0 0 30px rgba(59,130,246,0.4)) drop-shadow(0 0 60px rgba(59,130,246,0.15));
}

.rep_logo-wrap img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.rep_subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    font-weight: 400;
    letter-spacing: 0.06em;
    opacity: 0;
    animation: rep_fadeIn 0.8s ease 0.6s forwards;
}

.rep_powered {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(59,130,246,0.3);
    opacity: 0;
    animation: rep_fadeIn 0.8s ease 1.2s forwards;
}

/* ===== Form ===== */

.rep_form-container {
    width: 100%;
    max-width: 380px;
}

.rep_welcome {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    opacity: 0;
    animation: rep_slideUp 0.6s ease 0.2s forwards;
}

.rep_welcome-sub {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 36px;
    opacity: 0;
    animation: rep_slideUp 0.6s ease 0.35s forwards;
}

.rep_field {
    margin-bottom: 20px;
    opacity: 0;
    animation: rep_slideUp 0.6s ease forwards;
}

.rep_field:nth-child(1) {
    animation-delay: 0.45s;
}

.rep_field:nth-child(2) {
    animation-delay: 0.55s;
}

.rep_label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 6px;
}

.rep_input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rep_input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #9CA3AF;
    z-index: 1;
}

.rep_input-icon svg {
    width: 18px;
    height: 18px;
}

.rep_input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.rep_input::placeholder {
    color: #9CA3AF;
}

.rep_input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

/* ===== Toggle Password ===== */

.rep_toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.rep_toggle-pw:hover {
    color: #6B7280;
}

.rep_toggle-pw:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
    border-radius: 4px;
}

.rep_toggle-pw svg {
    width: 20px;
    height: 20px;
}

/* ===== Error ===== */

.rep_error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #DC2626;
}

.rep_error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== Button Login ===== */

.rep_btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(30,58,138,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    animation: rep_slideUp 0.6s ease 0.65s forwards;
    position: relative;
}

.rep_btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30,58,138,0.45);
}

.rep_btn-login:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(30,58,138,0.3);
}

.rep_btn-login:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 3px;
}

.rep_btn-login:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.rep_spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rep_spin 0.7s linear infinite;
}

.rep_btn-login.rep_loading .rep_spinner {
    display: block;
}

.rep_btn-login.rep_loading .rep_btn-text {
    display: none;
}

/* ===== Footer ===== */

.rep_footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #9CA3AF;
    letter-spacing: 0.02em;
}

/* ===== Reprise / Delete Session Forms ===== */

.rep_session-form {
    margin-top: 20px;
}

.rep_session-form .rep_btn-login {
    opacity: 1;
    animation: none;
}

.rep_session-warning {
    text-align: left;
    font-size: 13px;
    color: #DC2626;
    margin-top: 12px;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
}

.rep_btn-orange {
    background: linear-gradient(135deg, #B45309 0%, #F97316 100%);
    box-shadow: 0 4px 20px rgba(180,83,9,0.3);
}

.rep_btn-orange:hover {
    box-shadow: 0 8px 30px rgba(180,83,9,0.45);
}

/* ===== Keyframes ===== */

@keyframes rep_fadeIn {
    to { opacity: 1; }
}

@keyframes rep_slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rep_spin {
    to { transform: rotate(360deg); }
}

/* ===== Utility ===== */

.hide {
    display: none !important;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .rep_page {
        flex-direction: column;
    }

    .rep_left {
        width: 100%;
        min-height: 200px;
        height: 200px;
    }

    .rep_brand {
        padding: 20px;
        max-width: 100%;
    }

    .rep_logo-wrap img {
        height: 36px;
    }

    .rep_subtitle {
        font-size: 12px;
        margin-top: 6px;
    }

    .rep_powered {
        display: none;
    }

    .rep_right {
        width: 100%;
        min-height: auto;
        flex: 1;
        padding: 32px 24px 60px;
    }

    .rep_footer {
        position: relative;
        margin-top: 32px;
        bottom: auto;
    }
}

@media (max-width: 480px) {
    .rep_left {
        height: 150px;
    }

    .rep_brand {
        padding: 16px;
    }

    .rep_logo-wrap img {
        height: 30px;
    }

    .rep_subtitle {
        font-size: 11px;
    }

    .rep_right {
        padding: 28px 20px 60px;
    }

    .rep_welcome {
        font-size: 24px;
    }

    .rep_welcome-sub {
        font-size: 14px;
        margin-bottom: 28px;
    }
}
