:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --secondary: #8BC34A;
    --accent: #CDDC39;
    --text: #2E7D32;
    --text-light: #689F38;
    --background: #F1F8E9;
    --white: #ffffff;
    --gray: #E8F5E9;
    --dark-gray: #C8E6C9;
    --error: #f44336;
    --success: #4CAF50;
    --shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.login-card, .signup-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.login-card::before, .signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.avocado-icon {
    position: relative;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.avocado {
    width: 100%;
    height: 100%;
    background-color: #4CAF50;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    overflow: hidden;
}

.avocado::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 20%;
    background-color: #388E3C;
    border-radius: 50%;
}

.seed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #5D4037;
    border-radius: 50%;
}

.seed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #8D6E63;
    border-radius: 50%;
}

.brand-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.brand-header p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.login-form, .signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-field {
    position: relative;
}

.input-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.input-field label i {
    color: var(--text-light);
    font-size: 1rem;
}

.input-field input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: var(--transition);
    padding-right: 2.5rem;
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.show-password {
    position: absolute;
    right: 1rem;
    top: 62%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-password:hover {
    color: var(--primary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.remember-me, .terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input, .terms input {
    accent-color: var(--primary);
}

.forgot-password, .terms-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover, .terms-link:hover {
    text-decoration: underline;
}

.login-button {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.login-button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--text));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.social-login {
    margin: 1.5rem 0;
    text-align: center;
}

.social-login p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--gray);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray);
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
}

.social-btn.google {
    color: #db4437;
}

.social-btn.apple {
    color: #000000;
}

.social-btn.facebook {
    color: #1877f2;
}

.signup-link, .login-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.signup-link a, .login-link a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.signup-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.notification.show {
    bottom: 2rem;
    opacity: 1;
}

/* Modal de Termos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p, .modal-body ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-body strong {
    color: var(--primary);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray);
    text-align: right;
}

.modal-agree {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-agree:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--text));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Animações de Abacate */
.avocado-animation-container, 
.confused-avocados-container,
.avocado-explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
}

.flying-avocado {
    position: absolute;
    width: 40px;
    height: 40px;
    animation-name: flyUp;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

@keyframes flyUp {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.confused-avocado {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: shake 0.5s infinite alternate;
}

@keyframes shake {
    0% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

.avocado-body {
    width: 100%;
    height: 100%;
    background-color: #4CAF50;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    overflow: hidden;
}

.avocado-body::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 20%;
    background-color: #388E3C;
    border-radius: 50%;
}

.avocado-eyes {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    display: flex;
    justify-content: space-between;
}

.eye {
    width: 10px;
    height: 10px;
    background-color: #5D4037;
    border-radius: 50%;
    position: relative;
}

.eye::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 16px;
    height: 16px;
    border: 2px solid #5D4037;
    border-radius: 50%;
    opacity: 0.3;
}

.confused-avocado .eye {
    animation: confusedEye 2s infinite alternate;
}

@keyframes confusedEye {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animação de Abacates Explodindo */
.exploding-avocado {
    position: absolute;
    width: 40px;
    height: 40px;
    animation-name: explode;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: 
            translate(
                calc(cos(var(--angle)) * var(--distance)), 
                calc(sin(var(--angle)) * var(--distance))
            ) 
            scale(0.5);
        opacity: 0;
    }
}

.exploding-avocado .avocado-eyes .eye {
    animation: surprisedEye 0.3s infinite alternate;
}

@keyframes surprisedEye {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.3);
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .login-card, .signup-card {
        padding: 1.5rem;
    }
    
    .login-container {
        padding: 1rem;
    }
}

/* Esconder formulário de cadastro inicialmente */
.signup-card {
    display: none;
}