:root {
    --primary-blue: #003865;
    --primary-yellow: #ffd200;
    --bg-light: #f4f4f4;
    --input-bg: #f8f9fa;
    --text-white: #ffffff;
    --text-muted: #6c757d;
    --font-family: 'Lato', sans-serif;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

.error-message {
    display: none;
    background-color: #ffdde0;
    color: #d32f2f;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-left: 4px solid #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f2f2f2;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Luxury Glow Border */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 15px solid transparent;
    border-image: radial-gradient(circle, rgba(0, 56, 101, 0.1) 0%, rgba(0, 56, 101, 0.5) 100%) 1;
    pointer-events: none;
    z-index: 1000;
}

/* Header */
header {
    background-color: var(--primary-blue);
    padding: 0.8rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.menu-btn {
    display: none;
}

.logo-container img {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switch {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1.5rem;
    margin-left: 1rem;
    color: white;
    font-size: 0.85rem;
}

/* Desktop Layout */
.desktop-wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

.hero-section {
    width: 50%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    border-top-right-radius: 100px;
    z-index: 2;
}

.login-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    position: relative;
    padding: 2rem;
}

/* Curved transition */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    bottom: 0;
    width: 100px;
    background-color: white;
    border-top-left-radius: 100px;
    z-index: 1;
}

.login-box-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.center-logo {
    height: 100px;
    margin-bottom: 2.5rem;
    object-fit: contain;
}

.login-card {
    background-color: var(--primary-blue);
    width: 100%;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border-bottom-left-radius: 90px;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.8s ease-out;
}

.login-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .spinner {
    display: block;
}

.token-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    font-weight: 400;
}

.input-container {
    position: relative;
    background-color: #f6f6f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 55px;
}

.input-container i {
    color: #999;
    font-size: 1.1rem;
    margin-right: 0.8rem;
    width: 20px;
}

.input-container input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.1rem;
    color: #333;
}

.login-btn {
    width: 100%;
    height: 55px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition-standard);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.forgot-password {
    text-align: center;
    margin-top: 2rem;
}

.forgot-password a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Info Bar */
.info-bar {
    background-color: var(--primary-blue);
    width: 100%;
    max-width: 420px;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    z-index: 5;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    body::before {
        display: none;
    }

    header {
        padding: 0 1.5rem;
        height: 65px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container img {
        height: 38px;
    }

    nav {
        display: none;
    }

    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-btn span {
        width: 35px;
        height: 2px;
        background-color: white;
    }

    .hero-section {
        display: none;
    }

    .login-section {
        width: 100%;
        background-color: #f2f2f2;
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .login-box-container {
        max-width: 100%;
    }

    .center-logo {
        display: none;
    }

    .login-card {
        padding: 2.5rem 1.5rem;
        border-top-left-radius: 60px;
        border-bottom-right-radius: 60px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 10px;
        box-shadow: none;
        margin-bottom: 1.5rem;
    }

    .info-bar {
        max-width: 100%;
        margin-top: 0;
        border-radius: 15px;
        height: 60px;
        align-items: center;
        background-color: var(--primary-blue);
    }

    .info-bar .info-item {
        font-size: 0.9rem;
    }
}

/* TOKEN PAGE STYLES */
.token-wrapper {
    background-color: #fff;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.token-container {
    width: 100%;
    max-width: 900px; /* Wider for desktop 2-col feeling if needed, or focused */
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.token-left {
    flex: 1;
    max-width: 400px;
}

.token-right {
    flex: 1;
    max-width: 450px;
}

.token-header-lock {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.token-header-lock i {
    font-size: 2.5rem;
}

.token-code-display {
    border: 2px solid var(--primary-blue);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.token-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.token-explanation h3 {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.token-explanation p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
}

.method-title {
    color: #444;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.method-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.token-input-group {
    margin-bottom: 1rem;
}

.token-input-error {
    border: 1px solid #dc3545 !important;
    background-color: #fff8f8 !important;
}

.token-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.token-field:focus {
    border-color: var(--primary-blue);
}

.error-label {
    background-color: #dc3545;
    color: white;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-top: 4px;
    float: right;
}

.btn-yellow {
    background-color: #ffd200;
    color: var(--primary-blue);
    border: none;
    font-weight: 700;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.btn-yellow:hover {
    background-color: #e6bd00;
}

.btn-outline {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 700;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #f0f4f8;
}

.success-bar {
    background-color: #25d366;
    color: white;
    width: 100%;
    padding: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.success-bar i {
    font-size: 1.4rem;
}

/* Responsive Token */
@media (max-width: 768px) {
    .token-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .token-left, .token-right {
        max-width: 100%;
    }

    .token-wrapper {
        padding: 1rem;
        justify-content: flex-start;
    }

    .success-bar {
        width: 90%;
        bottom: 15px;
        font-size: 0.85rem;
    }
}