/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-orange: #F3BA2F; /* BSC Yellow */
    --primary-orange-hover: #CF9910; /* BSC Dark Gold */
    --primary-orange-light: rgba(243, 186, 47, 0.1);
    --dark-text: #2c3e50;
    --light-text: #7b8a9c;
    --subtitle-text: #8e9aaf;

    /* Background Colors */
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
    --bg-input: #f0f3f7;
    --bg-input-focus: #e8ecf2;

    /* Border Colors */
    --border-color: #e1e8ed;
    --border-focus: var(--primary-orange);

    /* Status Colors */
    --error-color: #ef4444;
    --success-color: #10b981;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-focus: 0 0 0 4px rgba(255, 140, 0, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--dark-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CONTAINER & CARD ===== */
.auth-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, #ff6b00 100%);
}

/* ===== LOGO ===== */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 120px;
    height: 60px;
    filter: drop-shadow(0 2px 8px rgba(255, 140, 0, 0.2));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===== HEADER ===== */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--subtitle-text);
    font-weight: 500;
}

/* ===== FORM ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    letter-spacing: -0.2px;
}

/* ===== INPUT WRAPPER ===== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--dark-text);
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all var(--transition-base);
}

.input-wrapper input::placeholder {
    color: var(--light-text);
}

.input-wrapper input:focus {
    background: var(--bg-card);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-focus);
    transform: translateY(-1px);
}

.input-wrapper input:hover:not(:focus) {
    background: var(--bg-input-focus);
}

/* Password Toggle Button */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--light-text);
    transition: all var(--transition-fast);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary-orange);
    background: var(--primary-orange-light);
}

.toggle-password .eye-icon {
    stroke-width: 2;
}

/* ===== CHECKBOX ===== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-orange);
    border-radius: 6px;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text);
    cursor: pointer;
    user-select: none;
}

/* ===== FORM OPTIONS ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

/* ===== LINKS ===== */
.link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-base);
}

.link:hover::after {
    width: 100%;
}

.link:hover {
    color: var(--primary-orange-hover);
}

.link-primary {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.link-primary:hover {
    color: var(--primary-orange-hover);
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b00 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Button Loader */
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading .btn-loader {
    display: block;
}

/* ===== FOOTER ===== */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    font-size: 13px;
    color: var(--error-color);
    font-weight: 500;
    margin-top: 4px;
    display: none;
    animation: shake 0.4s;
}

.error-message.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.input-wrapper input.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}