﻿/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-container {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}
    .header a{
        text-decoration: none;
    }
    .logo {
        font-size: 32px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 8px;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .logo img {
        margin-right: 5px;
    }

.subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Formulários */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

    .form-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

    .input-group input:focus {
        outline: none;
        border-color: #FF7A00;
        box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
    }

    .input-group input.error {
        border-color: #ff4444;
    }

    .input-group input::placeholder {
        color: #999;
    }

/* Checkbox Group */
.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

    .checkbox-label input[type="checkbox"] {
        margin-right: 8px;
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #FF7A00;
    }

.forgot-password {
    color: #FF7A00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #e66d00;
    }

/* Botões */
.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #FF7A00;
    color: white;
    margin-bottom: 16px;
}

    .btn-primary:hover {
        background: #e66d00;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Toggle Text */
.toggle-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.toggle-link {
    color: #FF7A00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .toggle-link:hover {
        color: #e66d00;
        text-decoration: underline;
    }

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

    .divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #e5e5e5;
    }

    .divider span {
        position: relative;
        display: inline-block;
        padding: 0 16px;
        background: white;
        color: #999;
        font-size: 14px;
    }

/* Botões Sociais */
.social-buttons {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google {
    color: #333;
}

    .btn-google:hover {
        border-color: #4285F4;
        background: #f8fbff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
    }

.btn-facebook {
    color: #1877F2;
}

    .btn-facebook:hover {
        border-color: #1877F2;
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
    }

.btn-social svg {
    flex-shrink: 0;
}

/* Footer Message */
.footer-message {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 24px;
    line-height: 1.5;
}

/* Error Message */
.error-message {
    color: #ff4444;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 8px;
    display: none;
}

    .error-message.show {
        display: block;
        animation: shake 0.3s ease;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Success Message */
.success-message {
    background: #30C16A;
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 16px;
    display: none;
    animation: slideDown 0.4s ease-out;
}

    .success-message.show {
        display: block;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-container {
        padding: 32px 24px;
    }

    .logo {
        font-size: 28px;
    }

    .form-title {
        font-size: 22px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .auth-container {
        padding: 48px 40px;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

    .btn.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
