/* --- Common Login Base --- */
:root {
    --primary-home: #84a98c;
    --primary-business: #76ac81;
    --dark-business: #1a202c;
    --text-muted: #a0aec0;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background: #fbfdfc;
    overflow-x: hidden;
}

.login-logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: #1a202c;
    letter-spacing: -0.05em;
    display: inline-block;
    margin-bottom: 24px;
}

.login-logo span {
    color: var(--primary-home);
    font-weight: 300;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary-home);
    text-decoration: none;
    font-weight: 600;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--primary-home);
    outline: none;
    box-shadow: 0 0 0 4px rgba(132, 169, 140, 0.1);
}

.submit-btn {
    padding: 18px;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #edf2f7;
    z-index: 1;
}

.divider span {
    background: #ffffff;
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #a0aec0;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

.social-login, .protocol-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.social-btn {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.home-btn {
    background: linear-gradient(135deg, #84a98c, #76ac81);
    border: none;
    border-radius: 100px;
    padding: 14px 40px;
    width: auto;
    align-self: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 172, 129, 0.4);
    filter: brightness(1.05);
}

.whatsapp-login {
    background: #e7f3eb;
    border-color: #d1e8da;
    color: #25d366;
}

.whatsapp-login:hover {
    background: #d1e8da;
}

/* --- THEME 4: COMMON LOGIN PREMIUM --- */
.common-theme-premium {
    --login-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.common-theme-premium .login-split {
    display: flex;
    height: 100vh;
    position: relative;
    background: var(--login-bg);
    overflow: hidden;
}

.common-theme-premium .login-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(132, 169, 140, 0.05)"/></svg>') center/cover;
    pointer-events: none;
    z-index: 1;
}

.common-theme-premium .visual-panel {
    flex: 1.2;
    position: relative;
    z-index: 2;
    padding-top: 120px;
    display: none;
}

@media (min-width: 1024px) {
    .common-theme-premium .visual-panel {
        display: block;
    }
}

.common-theme-premium .visual-content {
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.common-theme-premium .plan-badge {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(132, 169, 140, 0.2);
    color: var(--primary-home);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(5px);
    letter-spacing: 0.05em;
    border: 1px solid rgba(132, 169, 140, 0.3);
    display: inline-block;
}

.common-theme-premium .story-title {
    font-size: 4rem;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.common-theme-premium .story-title span {
    color: var(--primary-home);
}

.common-theme-premium .story-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    line-height: 1.6;
}

.common-theme-premium .feature-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 450px;
}

.common-theme-premium .form-panel {
    flex: 1;
    background: #ffffff;
    padding: 60px;
    padding-top: 120px;
    z-index: 2;
    overflow-y: auto;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    box-shadow: -20px 0 50px rgba(0,0,0,0.1);
}

.common-theme-premium .mobile-badge-container {
    display: none;
}

.common-theme-premium .form-container {
    max-width: 450px;
    margin: 0 auto;
}

.common-theme-premium .form-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.common-theme-premium .form-header p {
    color: #4a5568;
    margin-bottom: 40px;
    font-weight: 400;
}

.common-theme-premium .field-group label {
    color: #4a5568;
}

.common-theme-premium .input-wrapper input {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #1a202c;
}

.common-theme-premium .input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--primary-home);
    box-shadow: 0 0 0 4px rgba(132, 169, 140, 0.1);
}

.common-theme-premium .terms-text {
    color: #718096;
}

.common-theme-premium .secure-footer {
    color: #a0aec0;
}

.common-theme-premium .form-footer {
    color: #4a5568;
}

.account-type-toggle {
    display: flex;
    background: #edf2f7;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #718096;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-btn input {
    display: none;
}

.toggle-btn.active {
    background: #78ac83;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

@media (max-width: 1023px) {
    .common-theme-premium .login-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .common-theme-premium .form-panel {
        padding: 40px 20px;
        padding-top: 60px;
        border-radius: 0;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        margin-top: -40px;
    }
    
    .common-theme-premium .mobile-badge-container {
        display: block;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .common-theme-premium .plan-badge-mobile {
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--primary-home);
        background: rgba(132, 169, 140, 0.1);
        padding: 6px 14px;
        border-radius: 100px;
        letter-spacing: 0.05em;
        display: inline-block;
    }

    .common-theme-premium .visual-panel {
        display: block;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .common-theme-premium .story-title {
        font-size: 2.5rem;
        text-align: center;
    }
    .common-theme-premium .story-subtitle {
        text-align: center;
        margin: 0 auto;
    }
    .common-theme-premium .feature-stack {
        display: none;
    }
}
/* --- THEME 3: KSHEMA HOME PREMIUM --- */
.mobile-badge-container {
    display: none; /* Hide on desktop */
    text-align: center;
    margin-bottom: 24px;
}

.plan-badge-mobile {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-home);
    background: #e7f3eb;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    display: inline-block;
}

.home-theme-premium .login-split,
.business-theme-premium .login-split {
    display: flex;
    height: 100vh;
    position: relative;
    background-image: var(--login-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.home-theme-premium {
    --login-bg: url('hand.jpg');
}

.business-theme-premium {
    --login-bg: url('img_business.png');
}

.home-theme-premium .login-split::after,
.business-theme-premium .login-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.87); /* Darker overlay for better legibility */
    z-index: 1;
}

.home-theme-premium .visual-panel,
.business-theme-premium .visual-panel {
    flex: 1.2;
    position: relative;
    z-index: 2;
    padding-top: 120px;
    display: none;
}

@media (min-width: 1024px) {
    .home-theme-premium .visual-panel,
    .business-theme-premium .visual-panel {
        display: block;
    }
}

.home-theme-premium .visual-bg,
.business-theme-premium .visual-bg {
    display: none; /* Removed as it's now global */
}

.home-theme-premium .visual-content,
.business-theme-premium .visual-content {
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.home-theme-premium .plan-badge,
.business-theme-premium .plan-badge {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgb(128 169 137);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(5px);
    letter-spacing: 0.05em;
}

.home-theme-premium .story-title,
.business-theme-premium .story-title {
    font-size: 4.5rem;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.home-theme-premium .story-title span,
.business-theme-premium .story-title span {
    color: var(--primary-home);
}

.home-theme-premium .story-subtitle,
.business-theme-premium .story-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    line-height: 1.6;
}

.home-theme-premium .feature-stack,
.business-theme-premium .feature-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-mini-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.feature-mini-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.mini-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-home);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-text h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.mini-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

.home-theme-premium .form-panel,
.business-theme-premium .form-panel {
    flex: 1;
    background: transparent; /* Seamless background */
    padding: 60px;
    padding-top: 120px;
    z-index: 2;
    overflow-y: auto;
}

.home-theme-premium .form-container,
.business-theme-premium .form-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 60px 48px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 48px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.home-theme-premium .form-header h1,
.business-theme-premium .form-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.home-theme-premium .form-header p,
.business-theme-premium .form-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: #ffffff;
}

.form-footer a {
    color: var(--primary-home);
    font-weight: 700;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: none;
}

.terms-text {
    font-size: 0.85rem;
    color: #ffffff;
    text-align: center;
    margin: 24px 0;
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-home);
    text-decoration: none;
    font-weight: 600;
}

.secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 40px;
}

/* --- MOBILE RESPONSIVENESS (HOME PREMIUM) --- */
@media (max-width: 1023px) {
    .home-theme-premium .login-split,
    .business-theme-premium .login-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }

    .home-theme-premium .mobile-badge-container,
    .business-theme-premium .mobile-badge-container {
        display: block;
    }

    .home-theme-premium .form-panel,
    .business-theme-premium .form-panel {
        padding: 40px 20px;
        padding-top: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-theme-premium .form-container,
    .business-theme-premium .form-container {
        padding: 40px 24px;
        width: 100%;
        max-width: 100%;
        border-radius: 32px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .home-theme-premium .form-header h1,
    .business-theme-premium .form-header h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .home-theme-premium .form-header p,
    .business-theme-premium .form-header p {
        text-align: center;
        margin-bottom: 30px;
    }

    .home-theme-premium .home-btn,
    .business-theme-premium .home-btn {
        align-self: center;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-theme-premium .story-title,
    .business-theme-premium .story-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .home-theme-premium .story-subtitle,
    .business-theme-premium .story-subtitle {
        text-align: center;
        margin: 0 auto;
    }

    .feature-stack {
        grid-template-columns: 1fr !important;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .home-theme-premium .form-panel,
    .business-theme-premium .form-panel,
    .common-theme-premium .form-panel {
        padding: 80px 16px 40px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 1rem;
    }

    .social-login, .protocol-btns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .common-theme-premium .form-header h1 {
        font-size: 2rem;
    }

    .toggle-btn {
        font-size: 0.85rem;
        padding: 10px 4px;
    }

    .back-home-logo {
        top: 16px;
        left: 16px;
        padding: 6px 12px 6px 8px;
    }
    
    .back-home-logo span {
        display: none; /* Hide text on very small screens to save space */
    }
}

/* --- BACK TO HOME BUTTON --- */
.back-home-logo {
    position: absolute;
    top: 32px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 10px 24px 10px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.back-home-logo:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}
.back-home-logo img {
    height: 32px;
    width: auto;
}
.back-home-logo svg {
    margin-right: 4px;
}
@media (max-width: 1023px) {
    .back-home-logo {
        top: 20px;
        left: 20px;
        padding: 8px 16px 8px 12px;
        font-size: 1rem;
    }
}
