:root {
    /* Cores Principais - Inspirado em 99/Uber */
    --primary-color: #FFD700;
    --primary-dark: #FFC700;
    --primary-light: #FFE44D;
    --secondary-color: #1a1a1a;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --shadow-color: rgba(255, 215, 0, 0.3);
    --error-color: #ff4444;
    --success-color: #00C851;
    --google-color: #4285f4;
    --apple-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--shadow-color);
    animation: pulse 2s ease-in-out infinite;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-circle i {
    font-size: 28px;
    color: var(--secondary-color);
}

.logo-text {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-text span {
    color: var(--primary-color);
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.tagline {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Card de Login */
.login-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cardSlide 0.7s ease-out 0.2s both;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 28px;
}

/* Form */
.login-form {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-weight: 500;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.input-group input:focus + .input-icon,
.input-group input:not(:placeholder-shown) + .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Botão Login */
.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--bg-gradient);
    border: none;
    border-radius: 12px;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .loading-spinner {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Error Message */
.error-message {
    background: #ffe6e6;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
    border-left: 4px solid var(--error-color);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Signup Section */
.signup-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.signup-section p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.btn-signup {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Account Type */
.account-type {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.account-type p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.account-type a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.account-type a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Other Options */
.other-options-section {
    margin-top: 20px;
}

.btn-other-options {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-other-options i {
    font-size: 16px;
}

.btn-other-options:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    background: rgba(255, 215, 0, 0.05);
}

.btn-other-options:active {
    transform: scale(0.98);
}

/* Driver Access */
.driver-access {
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Driver Access */
.driver-access {
    margin-top: 20px;
}

.btn-driver-access {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-driver-access i {
    font-size: 18px;
}

.btn-driver-access:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.btn-driver-access:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-white);
    font-size: 12px;
    opacity: 0.7;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .logo-text {
        font-size: 36px;
    }

    .welcome-text {
        font-size: 24px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Animações de entrada */
@media (prefers-reduced-motion: no-preference) {
    .input-group {
        animation: fadeInUp 0.5s ease-out backwards;
    }

    .input-group:nth-child(1) { animation-delay: 0.1s; }
    .input-group:nth-child(2) { animation-delay: 0.2s; }
    .btn-login { animation: fadeInUp 0.5s ease-out 0.3s backwards; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}
