@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #059669;
    --secondary-green: #10b981;
    --accent-green: #34d399;
    --dark-green: #047857;
    --darker-green: #065f46;
    --light-green: #d1fae5;
    --ultra-light-green: #ecfdf5;
    
    --dark-bg: #0a0f0d;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --input-bg: #f9fafb;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-green: 0 10px 30px rgba(5, 150, 105, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== BRAND SECTION ===== */
.brand-section {
    position: relative;
    background: linear-gradient(135deg, var(--darker-green) 0%, var(--dark-green) 50%, var(--primary-green) 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.logo-wrapper {
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease;
}

.brand-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.brand-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease 0.2s backwards;
}

.brand-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 56px;
    animation: fadeInDown 0.8s ease 0.4s backwards;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInLeft 0.8s ease backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.5s; }
.feature-item:nth-child(2) { animation-delay: 0.6s; }
.feature-item:nth-child(3) { animation-delay: 0.7s; }

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-green), var(--secondary-green));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.25);
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* ===== FORM SECTION ===== */
.form-section {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
}

.platform-logo {
    text-align: left;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease;
}

.platform-logo img {
    max-width: 50px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(5, 150, 105, 0.12));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-logo img:hover {
    transform: scale(1.05);
}

/* Mobile Banner - Hidden by default */
.mobile-banner {
    display: none;
}

.auth-container {
    animation: fadeInRight 0.6s ease;
}

.auth-container.hidden {
    display: none;
}

.auth-header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-text {
    flex: 1;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    max-width: 60px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(5, 150, 105, 0.12));
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===== FORM STYLES ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-green);
    font-size: 16px;
}

.form-group input,
.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.input-wrapper input:focus {
    background: white;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.input-prefix {
    position: absolute;
    left: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    pointer-events: none;
}

.input-wrapper input[type="tel"] {
    padding-left: 52px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.toggle-password:hover {
    background: var(--input-bg);
    color: var(--primary-green);
}

.toggle-password i {
    font-size: 16px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.terms-checkbox a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.terms-checkbox a:hover {
    color: var(--dark-green);
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-switch {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-switch:hover {
    background: var(--ultra-light-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-switch i {
    font-size: 14px;
    transition: transform 0.3s;
}

.btn-switch:hover i {
    transform: translateX(4px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    
    .brand-section {
        display: none;
    }
    
    .form-section {
        background: linear-gradient(135deg, var(--ultra-light-green) 0%, white 50%);
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    
    .brand-section {
        display: none;
    }
    
    .form-section {
        padding: 20px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .form-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    /* Mostrar banner em mobile */
    .mobile-banner {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .mobile-banner img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }
    
    .platform-logo {
        margin-bottom: 20px;
    }
    
    .auth-header {
        margin-bottom: 20px;
    }
    
    .header-logo img {
        max-width: 50px;
    }
    
    .auth-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .auth-form {
        gap: 16px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .input-wrapper input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 14px;
    }
    
    .switch-form {
        margin-top: 16px;
        font-size: 13px;
    }
    
    .btn-switch {
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 16px;
    }
    
    .mobile-banner {
        margin-bottom: 16px;
    }
    
    .platform-logo {
        margin-bottom: 16px;
    }
    
    .platform-logo img {
        max-width: 40px;
    }
    
    .auth-header {
        margin-bottom: 16px;
    }
    
    .header-logo img {
        max-width: 40px;
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .auth-form {
        gap: 14px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .input-wrapper input {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 11px;
        font-size: 13px;
    }
    
    .switch-form {
        margin-top: 14px;
        font-size: 12px;
    }
    
    .btn-switch {
        font-size: 12px;
    }
}

/* ===== LOGIN OPTIONS ===== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.remember-me label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.btn-forgot-password {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.btn-forgot-password:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* ===== MODAL DE RECUPERAÇÃO DE SENHA ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--input-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 18px;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header i {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 24px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-header i {
        font-size: 40px;
    }
    
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-forgot-password {
        font-size: 13px;
    }
}
