/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --localiza-green: #00b359;
    --localiza-green-dark: #009944;
    --localiza-green-light: #00d66a;
    --alert-orange: #ff6b35;
    --alert-yellow: #ffc107;
    --text-dark: #2c3e50;
    --text-medium: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--localiza-green);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--localiza-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--localiza-green);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-help {
    color: var(--localiza-green);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    background: var(--localiza-green);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 179, 89, 0.3);
}

.btn-login:hover {
    background: var(--localiza-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 179, 89, 0.4);
}

.menu-mobile {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-mobile span {
    width: 25px;
    height: 3px;
    background: var(--localiza-green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Alert Banner */
.alert-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa64d 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5); }
}

.alert-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.alert-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.alert-left {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.alert-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.alert-text {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}


/* Main Content */
.main-content {
    padding: 50px 0 80px;
    min-height: calc(100vh - 200px);
}

.form-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 750px;
    margin: 0 auto;
    padding: 50px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--localiza-green) 0%, var(--localiza-green-light) 100%);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.security-badge {
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.form-header h1 {
    color: var(--text-dark);
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--localiza-green) 0%, var(--localiza-green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-medium);
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.urgency-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe5a3 100%);
    border-left: 5px solid var(--alert-yellow);
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: var(--shadow-sm);
        border-left-color: var(--alert-yellow);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
        border-left-color: var(--alert-orange);
    }
}

.urgency-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.urgency-text {
    flex: 1;
}

.urgency-text strong {
    color: var(--alert-orange);
}


.urgency-subtext {
    font-size: 13px;
    color: var(--text-medium);
    margin-top: 8px;
    font-style: italic;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #f0f0f0;
    animation: fadeIn 0.8s ease-out backwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--localiza-green);
}

.form-section h2::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--localiza-green);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--localiza-green);
    box-shadow: 0 0 0 4px rgba(0, 179, 89, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus + label {
    color: var(--localiza-green);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Terms */
.terms {
    margin: 30px 0;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.terms label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-medium);
}

.terms input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--localiza-green);
}

.terms a {
    color: var(--localiza-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms a:hover {
    color: var(--localiza-green-dark);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--localiza-green) 0%, var(--localiza-green-dark) 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 179, 89, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 179, 89, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: space-around;
    margin: 35px 0 25px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    gap: 15px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.badge span {
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 600;
}

.badge svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.help-text {
    text-align: center;
    margin-top: 25px;
    color: var(--text-medium);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.help-icon {
    font-size: 18px;
}

.help-text a {
    color: var(--localiza-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.help-text a:hover {
    color: var(--localiza-green-dark);
    text-decoration: underline;
}

.help-text strong {
    color: var(--text-dark);
}

/* Modal de Educação */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideUpModal 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 50%, #e53935 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.warning-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    animation: warningShake 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes warningShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
}

.modal-body {
    padding: 40px;
}

.modal-intro {
    font-size: 20px;
    text-align: center;
    margin-bottom: 35px;
    color: #d32f2f;
    font-weight: 700;
    padding: 20px;
    background: #ffebee;
    border-radius: 10px;
    border: 2px solid #ef5350;
}

.modal-body h3 {
    color: var(--text-dark);
    margin: 30px 0 20px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-list, .tips-list {
    list-style: none;
    padding-left: 0;
}

.warning-list li, .tips-list li {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    position: relative;
    padding-left: 45px;
    transition: all 0.3s ease;
}

.warning-list li {
    background: #fff3cd;
    border-left: 5px solid var(--alert-orange);
}

.warning-list li::before {
    content: '⚠️';
    position: absolute;
    left: 15px;
    font-size: 20px;
}

.warning-list li:hover {
    background: #ffe8b8;
    transform: translateX(5px);
}

.tips-list li {
    background: #d4edda;
    border-left: 5px solid #28a745;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    font-size: 22px;
    color: #28a745;
    font-weight: bold;
}

.tips-list li:hover {
    background: #c3e6cb;
    transform: translateX(5px);
}

.modal-footer {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    border: 2px solid #4caf50;
}

.modal-footer p {
    margin: 8px 0;
    font-weight: 600;
}

.close-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--localiza-green) 0%, var(--localiza-green-dark) 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 179, 89, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-btn:hover {
    background: linear-gradient(135deg, var(--localiza-green-dark) 0%, var(--localiza-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 179, 89, 0.4);
}

/* Scrollbar personalizada */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--localiza-green);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--localiza-green-dark);
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
    padding: 50px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--localiza-green) 0%, var(--localiza-green-light) 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-icon {
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

.login-header h1 {
    color: var(--text-dark);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header .subtitle {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.5;
}

/* Google Login Button */
.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #c6c8ca;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.google-login-btn:active {
    background: #f1f3f4;
}

.google-icon {
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
}

/* Login Form */
.login-form {
    margin-top: 25px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 25px;
    font-size: 14px;
}

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

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--localiza-green);
}

.forgot-password {
    color: var(--localiza-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--localiza-green-dark);
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-medium);
    font-size: 14px;
}

.signup-link a {
    color: var(--localiza-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--localiza-green-dark);
    text-decoration: underline;
}

/* User Info (logged in state) */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
}

.user-icon {
    font-size: 18px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Textarea styles */
textarea {
    resize: vertical;
    font-family: inherit;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

textarea:focus {
    outline: none;
    border-color: var(--localiza-green);
    box-shadow: 0 0 0 4px rgba(0, 179, 89, 0.1);
}

textarea::placeholder {
    color: var(--text-light);
}

.field-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-medium);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-mobile {
        display: flex;
    }

    .header-container {
        height: 60px;
    }

    .form-wrapper,
    .login-wrapper {
        padding: 30px 20px;
        border-radius: 12px;
        margin: 0 10px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 5% 15px;
        width: calc(100% - 30px);
    }

    .modal-body {
        padding: 25px 20px;
    }

    .security-badges {
        flex-direction: column;
        gap: 20px;
    }

    .alert-left {
        flex-direction: column;
        text-align: center;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .google-login-btn span {
        font-size: 14px;
    }

    .nav-link {
        font-size: 12px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 20px;
    }

    .logo svg {
        width: 100px;
        height: 36px;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 12px;
    }

    .alert-text {
        font-size: 14px;
    }

    #countdown {
        font-size: 16px;
    }
}
