@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    background: url(../images/fundo.jpg) center/cover no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    z-index: -2;
    animation: backgroundFloat 20s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

@keyframes gradientShift {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 30px;
    position: relative;
    z-index: 1;
}

.forgot-pass {
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-pass:hover {
    color: #667eea !important;
    transform: translateY(-1px);
}

.recaptcha {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.form {
    position: relative;
    max-width: 450px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideInUp 0.8s ease;
    transform-origin: center;
}

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

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

.form.signup {
    opacity: 0;
    pointer-events: none;
}

.forms.show-signup .form.signup {
    opacity: 1;
    pointer-events: auto;
}

.forms.show-signup .form.login {
    opacity: 0;
    pointer-events: none;
}

header {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

form {
    margin-top: 35px;
}

.form .field {
    position: relative;
    height: 56px;
    width: 100%;
    margin-top: 24px;
    border-radius: 12px;
    animation: fadeInUp 0.6s ease calc(var(--delay, 0) * 0.1s) both;
}

.field:nth-child(1) { --delay: 1; }
.field:nth-child(2) { --delay: 2; }
.field:nth-child(3) { --delay: 3; }
.field:nth-child(4) { --delay: 4; }

.field input,
.field button {
    height: 100%;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.field input {
    outline: none;
    padding: 0 20px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a2e;
    font-weight: 500;
}

.field input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.field input::placeholder {
    color: #8b8b8b;
    font-weight: 400;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #8b8b8b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.eye-icon:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.field button {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.field button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.field button:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.form-link {
    text-align: center;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.form-link span,
.form-link a {
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4a;
}

.form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-content a:hover {
    color: #5a6fd8;
    text-decoration: none;
}

.line {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 40px 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    animation: fadeInUp 0.6s ease 0.6s both;
}

.line::before {
    content: 'Ou';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 0 20px;
    font-weight: 600;
    font-size: 14px;
}

.media-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 600;
    animation: fadeInUp 0.6s ease calc(0.7s + var(--delay, 0) * 0.1s) both;
}

a.facebook {
    color: #fff;
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%);
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.3);
}

a.facebook:hover {
    background: linear-gradient(135deg, #365899 0%, #2d4373 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(66, 103, 178, 0.4);
}

a.facebook .facebook-icon {
    height: 28px;
    width: 28px;
    color: #0171d3;
    font-size: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.facebook-icon,
img.google-img {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

img.google-img {
    height: 20px;
    width: 20px;
    object-fit: cover;
}

a.google {
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

a.google:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

a.google span {
    font-weight: 600;
    opacity: 0.8;
    color: #333;
}

@media screen and (max-width: 768px) {
    .form {
        padding: 30px 25px;
        margin: 20px;
        max-width: 400px;
    }
    
    header {
        font-size: 28px;
    }
    
    .field {
        height: 52px;
        margin-top: 20px;
    }
    
    .field input {
        padding: 0 16px;
        font-size: 15px;
    }
    
    .media-options a .redirect-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 400px) {
    .form {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 16px;
    }
    
    header {
        font-size: 24px;
    }
    
    .field {
        height: 48px;
        margin-top: 18px;
    }
    
    .line {
        margin: 30px 0;
    }
}

/* Efeitos adicionais para melhor experiência */
.form:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Animação suave para transições de foco */
.field input:not(:focus):not(:placeholder-shown) {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

/* Melhor contraste para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}