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

:root {
    --color-primary: #53954a;   
    --color-primary-hover: #3e7037;
    --color-text-dark: #333;
    --color-text-gray: #666;
    --color-border: #E0E0E0;
    --input-bg: #FAFAFA;
    --strength-weak: #e74c3c;
    --strength-medium: #f1c40f;
    --strength-strong: #53954a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; }

body {
    font-family: var(--font-body);
    background-color: #fff;
    overflow: hidden; 
}

/* LAYOUT */
.login-container { display: flex; width: 100%; height: 100vh; height: 100dvh; }
.login-image-side { flex: 1.3; position: relative; background-color: #f0f0f0; height: 100%; overflow: hidden; }
.cover-image { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.image-overlay { position: absolute; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.3), transparent); z-index: 1; }

.login-form-side {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background-color: #fff; padding: 1.5rem; height: 100%; position: relative; overflow-y: auto;
}
.login-form-side::-webkit-scrollbar { display: none; }
.login-form-side { -ms-overflow-style: none; scrollbar-width: none; }

.form-wrapper { width: 100%; max-width: 460px; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }

/* HEADER */
.brand-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo-icon { width: 45px; height: auto; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-text-dark); }
.welcome-title { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-text-dark); margin-bottom: 5px; line-height: 1.1; }
.welcome-subtitle { color: var(--color-text-gray); margin-bottom: 25px; font-size: 0.9rem; }

/* STEPS */
.form-step { display: none; animation: fadeIn 0.4s ease; width: 100%; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* CARDS */
.account-type-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
#step-pro-selection .account-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.type-card {
    display: flex; align-items: center; gap: 15px; padding: 12px 15px;
    border: 2px solid var(--color-border); border-radius: 12px; cursor: pointer;
    transition: all 0.2s ease; background: #fff; position: relative; min-height: 72px;
}
.type-card:hover { border-color: #bbb; background-color: #fafafa; }
.type-card.selected { border-color: var(--color-primary); background-color: rgba(255, 255, 255, 1); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

#step-pro-selection .type-card { flex-direction: column; text-align: center; padding: 20px 10px; height: 120px; justify-content: center; gap: 8px; }

.card-icon { width: 42px; height: 42px; border-radius: 50%; background-color: #eee; color: #555; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; transition: 0.3s; }
.type-card.selected .card-icon { background-color: var(--color-primary); color: white; }

.card-info { flex: 1; display: flex; flex-direction: column; }
.card-title { font-weight: 700; font-size: 0.9rem; color: var(--color-text-dark); }
.card-desc { font-size: 0.75rem; color: #777; margin-top: 2px; line-height: 1.2; }
.check-circle { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.7rem; position: absolute; right: 15px; }
#step-pro-selection .check-circle { top: 10px; right: 10px; }
.type-card.selected .check-circle { background-color: var(--color-primary); border-color: var(--color-primary); color: white; }

.type-card.disabled {
    cursor: not-allowed;
    background-color: #f9f9f9;
    opacity: 0.7;
    pointer-events: none; /* Impede cliques diretos no label */
}

.type-card.disabled .card-info,
.type-card.disabled .card-icon {
    opacity: 0.6;
}

.type-card.disabled:hover {
    border-color: var(--color-border);
    background-color: #f9f9f9;
}

.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e67e22;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    transform: rotate(10deg);
    z-index: 2;
    font-family: var(--font-heading);
}

/* INPUTS */
.input-group { margin-bottom: 12px; width: 100%; }
.split-inputs { display: flex; gap: 12px; width: 100%; margin-bottom: 12px; }
.split-inputs .input-group { margin-bottom: 0; flex: 1; }

.input-wrapper {
    display: flex; align-items: center; width: 100%; padding: 0 15px;
    border: 1px solid var(--color-border); border-radius: 8px;
    background-color: var(--input-bg); height: 48px; transition: 0.3s;
}
.input-wrapper:focus-within { border-color: var(--color-primary); background-color: #fff; box-shadow: 0 0 0 3px rgba(83, 149, 74, 0.1); }
.input-icon { color: #999; margin-right: 12px; font-size: 1rem; width: 20px; text-align: center; }
.input-wrapper input, .custom-select { flex: 1; border: none; outline: none; background: none; font-size: 0.9rem; color: var(--color-text-dark); height: 100%; width: 100%; font-family: var(--font-body); }

/* SOCIAL */
.social-login-container { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 45px;
    border-radius: 8px; border: 1px solid #e0e0e0; background: #fff;
    font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: 0.2s; color: #333;
}
.btn-social:hover { background-color: #f7f9fa; transform: translateY(-1px); }
.btn-social.google img { width: 20px !important; height: 20px !important; object-fit: contain; }
.btn-social.facebook { background-color: #1877F2; color: white; border-color: #1877F2; }
.btn-social.facebook:hover { background-color: #166fe5; }
.separator { display: flex; align-items: center; text-align: center; margin: 20px 0; color: #bbb; font-size: 0.8rem; }
.separator::before, .separator::after { content: ''; flex: 1; border-bottom: 1px solid #eee; }
.separator span { padding: 0 10px; background-color: #fff; font-weight: 600; }

/* EXTRAS */
.password-strength-meter { margin-bottom: 10px; display: none; }
.strength-bar { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; transition: 0.3s; }
.form-options { margin-bottom: 20px; font-size: 0.85rem; }
.remember-me { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #666; }
.remember-me input { accent-color: var(--color-primary); width: 16px; height: 16px; }

.btn-primary {
    width: 100%; height: 50px; background-color: var(--color-primary); color: white;
    border: none; border-radius: 8px; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.2s; margin-top: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover { background-color: var(--color-primary); filter: brightness(0.9); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

.footer-links { margin-top: 20px; text-align: center; border-top: 1px solid #eee; padding-top: 15px; }
.footer-links p { font-size: 0.75rem; color: #888; }
.signup-footer { margin-top: 20px; font-size: 0.85rem; text-align: center; color: #666; }
.signup-footer a, .footer-links a { color: var(--color-primary); text-decoration: none; font-weight: 700; }
.back-step-link { display: block; text-align: center; font-size: 0.85rem; color: #999; margin-top: 15px; text-decoration: none; transition: 0.2s; }
.back-step-link:hover { color: var(--color-text-dark); }
.alert-box { padding: 12px; font-size: 0.85rem; border-radius: 8px; margin-bottom: 15px; background: #e3f2fd; color: #0d47a1; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(13, 71, 161, 0.1); }

/* MODAL LUXURY */
.luxury-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px) saturate(120%); z-index: 10000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.luxury-overlay.active { display: flex; opacity: 1; }
.luxury-card { background: #fff; width: 340px; padding: 35px 30px; border-radius: 28px; box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.8); text-align: center; transform: scale(0.9) translateY(20px); opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.luxury-overlay.active .luxury-card { transform: scale(1) translateY(0); opacity: 1; }
.luxury-icon-pulse { width: 65px; height: 65px; margin: 0 auto 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; position: relative; }
.luxury-icon-pulse::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1px solid currentColor; opacity: 0.5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }
.luxury-icon-pulse.error { background: rgba(217, 45, 45, 0.1); color: #d92d2d; }
.luxury-icon-pulse.success { background: rgba(83, 149, 74, 0.1); color: #53954a; }
.luxury-icon-pulse.warning { background: rgba(241, 196, 15, 0.1); color: #f39c12; }
.btn-lux-confirm { width: 100%; padding: 12px; border-radius: 12px; border: none; background: #1a1a1a; color: white; font-weight: 700; cursor: pointer; font-family: var(--font-heading); transition: 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-lux-confirm:hover { background: #333; transform: translateY(-2px); }

@media (max-width: 900px) {
    .login-container { flex-direction: column; }
    .login-image-side { display: none; }
    .login-form-side { width: 100%; padding: 20px; }
    .form-wrapper { max-width: 100%; }
}
@media (max-width: 480px) {
    .split-inputs { flex-direction: column; gap: 12px; }
    .brand-header { justify-content: center; }
    .form-header { text-align: center; }
}