:root {
    /* CORES PRINCIPAIS */
    --accent-color: #fad02c;      /* Amarelo dourado */
    --secondary-accent: #1e90ff;  /* Azul */
    
    /* NEUTRALS */
    --gray-900: #212121;          /* Texto primário */
    --gray-700: #616161;          /* Texto secundário */
    --gray-300: #E0E0E0;          /* Bordas */
    --gray-100: #F5F5F5;          /* Backgrounds claros */
    
    /* BACKGROUNDS */
    --bg-primary: #FFFFFF;        /* Cards principais */
    --bg-secondary: #FAFAFA;      /* Backgrounds secundários */
    --bg-dark: linear-gradient(135deg, #121212, #1e1e1e, #0f0f0f);
    --bg-card: rgba(30, 30, 30, 0.85);
    --bg-overlay: rgba(20, 20, 20, 0.1);
    
    /* STATUS COLORS */
    --success: #22c55e;           /* Verde aprovado */
    --warning: #fbbf24;           /* Amarelo pendente */
    --danger: #ef4444;            /* Vermelho rejeitado */
    --info: #3b82f6;              /* Azul informativo */
    
    /* TYPOGRAPHY */
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* SPACING */
    --radius-sm: 6px;    /* Elementos pequenos */
    --radius-md: 8px;    /* Botões, inputs */
    --radius-lg: 12px;   /* Cards */
    --radius-xl: 16px;   /* Containers principais */
    
    /* SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* TRANSITIONS */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-INDEX */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* RESET E BASE */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--bg-secondary);
}

/* AUTH WRAPPER */
.auth-wrapper {
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: rgba(40, 40, 40, 0.05);
    transform: rotate(45deg);
    top: -50%;
    left: -25%;
    border-radius: 30%;
    z-index: 0;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    transform: rotate(15deg);
    top: 0;
    right: -25%;
    border-radius: 30%;
    z-index: 0;
}

/* AUTH CARD */
.auth-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 60, 60, 0.2);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    z-index: 2;
}

/* AUTH HEADER */
.auth-header {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(60, 60, 60, 0.2);
}

.auth-logo {
    max-height: 90px;
    margin-bottom: 0.75rem;
    transition: transform var(--transition-normal);
    filter: brightness(1.2);
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.auth-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
    font-family: var(--font-display);
}

.auth-subtitle {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* AUTH BODY */
.auth-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* FORM COMPONENTS */
.form-floating {
    margin-bottom: 1rem;
    position: relative;
}

.form-control {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 1rem 1rem 0.5rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    background: rgba(50, 50, 50, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(250, 208, 44, 0.1);
    outline: none;
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(160, 160, 160, 0.7);
}

.form-floating label {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.form-floating.focused label {
    color: var(--accent-color);
    transform: translateY(-2px);
    transition: all var(--transition-fast);
}

/* SELECT STYLES */
.form-select {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 1rem 1rem 0.5rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.form-select:focus {
    background: rgba(50, 50, 50, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(250, 208, 44, 0.1);
    outline: none;
    color: #ffffff;
}

.form-select option {
    background: #2a2a2a;
    color: #ffffff;
    padding: 0.5rem;
}

/* BUTTON STYLES */
.btn-auth {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    border: none;
    border-radius: var(--radius-md);
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f4d03f, var(--accent-color));
}

.btn-auth:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* LOADING STATES */
.btn-auth.loading {
    pointer-events: none;
    position: relative;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AUTH FOOTER */
.auth-footer {
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(60, 60, 60, 0.2);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: #f4d03f;
    text-decoration: underline;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* DECORATIVE ELEMENTS */
.auth-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    opacity: 0.1;
    filter: blur(40px);
    z-index: 0;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation: float 8s ease-in-out infinite reverse;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: -50px;
    animation: float 7s ease-in-out infinite;
}

.decoration-4 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: -40px;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ERROR STATES */
.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    color: var(--danger);
    font-size: 1rem;
}

/* SUCCESS STATES */
.form-control.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: #22c55e;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    color: var(--success);
    font-size: 1rem;
}

/* CHECKBOX STYLES */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(80, 80, 80, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(40, 40, 40, 0.8);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

/* SHAKE ANIMATION */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.6s ease-in-out;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        border-radius: var(--radius-md);
    }
    
    .auth-header,
    .auth-body {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.2rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-auth {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .decoration-1,
    .decoration-2,
    .decoration-3,
    .decoration-4 {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 0.5rem;
        border-radius: var(--radius-sm);
    }
    
    .auth-header,
    .auth-body {
        padding: 1rem;
    }
    
    .auth-title {
        font-size: 1.1rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.875rem 0.875rem 0.375rem;
    }
    
    .btn-auth {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #0f0f0f;
        --gray-900: #ffffff;
        --gray-700: #a0a0a0;
        --gray-300: #404040;
        --gray-100: #1a1a1a;
    }
}

/* 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 */
.btn-auth:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .auth-wrapper::before,
    .auth-wrapper::after,
    .auth-decoration {
        display: none;
    }
    
    .auth-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 