/* Business Login — compact layout */

:root {
    --primary-teal: #0f766e;
    --primary-teal-light: #14b8a6;
    --accent-gold: #D4AF37;
    --text-dark: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-soft: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

body.business-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.18) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.16) 0px, transparent 45%),
        var(--bg-soft);
}

body.business-login-page .gradient-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(at 20% 30%, rgba(15, 118, 110, 0.14) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(212, 175, 55, 0.12) 0px, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.login-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 34% 66%;
    min-height: 0;
}

body.business-login-page .login-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.login-visual--image-only {
    padding: 12px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.login-shrinathji-img {
    width: 100%;
    height: 100%;
    min-height: 296px;
    max-height: 360px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}

.login-form-section {
    padding: 24px 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--white);
}

body.business-login-page .login-form-section {
    background: transparent;
}

body.business-login-page .form-control {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(226, 232, 240, 0.9);
}

body.business-login-page .form-control:focus {
    background: rgba(255, 255, 255, 0.92);
}

.back-link {
    position: absolute;
    top: 16px;
    right: 20px;
    left: auto;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--primary-teal-light);
}

.form-header {
    margin: 0 0 18px;
    padding-right: 72px;
}

.form-header h2 {
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.login-form {
    margin: 0;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: #f8fafc;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    padding: 4px;
    line-height: 1;
}

.toggle-password:hover {
    color: var(--primary-teal);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 2px 0 14px;
    font-size: 0.8125rem;
}

.forgot-password {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    color: var(--primary-teal-light);
}

.btn-login {
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.signup-link {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.8125rem;
    margin-top: 16px;
    line-height: 1.5;
}

.signup-link a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

/* Registration page reuses legacy classes — keep minimal shared rules */
.login-container.registration-container {
    max-width: 720px;
}

.registration-card-simple {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 700px) {
    body.business-login-page {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-visual--image-only {
        min-height: 140px;
        padding: 10px;
    }

    .login-shrinathji-img {
        min-height: 120px;
        max-height: 160px;
    }

    .login-form-section {
        padding: 20px 18px 18px;
    }

    .form-header {
        padding-right: 0;
        margin-bottom: 14px;
    }

    .back-link {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }

    .form-header h2 {
        font-size: 1.25rem;
    }
}
