@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hide native browser password reveal icon (Edge/Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

:root {
    --primary-navy: #0B2238;
    --primary-navy-hover: #173859;
    --brand-orange: #E05A2B;
    --brand-orange-hover: #C84B1F;
    --bg-warm: #F5ECE1;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --white: #FFFFFF;
}

body {
    background: linear-gradient(135deg, #0B2238 0%, #173859 50%, #2A4A6C 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
}

/* Background aesthetic shapes */
body::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(224, 90, 43, 0.15);
    top: -80px;
    left: -80px;
    filter: blur(60px);
}

body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(245, 236, 225, 0.1);
    bottom: -60px;
    right: -60px;
    filter: blur(50px);
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.logo span {
    color: var(--brand-orange);
}

.brand-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-dark);
    background: #F8FAFC;
}

.form-input:focus {
    border-color: var(--primary-navy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 34, 56, 0.08);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}

.remember-me input {
    accent-color: var(--primary-navy);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-pass {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: var(--brand-orange-hover);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(11, 34, 56, 0.25);
}

.btn-submit:hover {
    background-color: var(--primary-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 34, 56, 0.35);
}

.card-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.card-footer p {
    color: var(--text-muted);
    font-weight: 500;
}

.card-footer a {
    color: var(--brand-orange);
    font-weight: 700;
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600 !important;
    transition: color 0.2s;
}

.back-home:hover {
    color: var(--primary-navy) !important;
}

/* Centered POPUP Alert Modal System (Thông báo dạng Popup nổi bật đọc thoải mái) */
.alert-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 34, 56, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.alert-popup-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: popupScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScaleUp {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px auto;
}

.alert-popup-icon.success {
    background: #DCFCE7;
    color: #16A34A;
}

.alert-popup-icon.error {
    background: #FEE2E2;
    color: #DC2626;
}

.alert-popup-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.alert-popup-message {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 24px;
}

.alert-popup-btn {
    width: 100%;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-popup-btn:hover {
    background-color: var(--brand-orange);
    transform: translateY(-1px);
}
