/* Salez Girl authentication page styles (MongoDB-style split layout) */

:root {
    --auth-bg: #FFFFFF;
    --auth-text: #001E2B;
    --auth-accent: var(--pink-600);
    --auth-muted: #5D6C74;
    --auth-border: #E8EDF0;
    --auth-input-bg: #FFFFFF;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.sg-auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Form Side */
.sg-auth-side-form {
    flex: 0 0 45%;
    background: var(--auth-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
}

.sg-auth-form-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sg-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sg-logo-img {
    height: 32px;
    width: auto;
}

.sg-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.02em;
}

.sg-auth-titles h1 {
    font-size: 2rem;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sg-auth-titles p {
    color: var(--auth-muted);
    font-size: 1rem;
}

.sg-tab-link {
    color: var(--pink-600);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.sg-tab-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--auth-text);
}

.form-input {
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--auth-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--pink-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 159, 0.1);
}

.sg-input-wrapper {
    position: relative;
    display: flex;
}

.sg-input-wrapper .form-input {
    width: 100%;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.sg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-primary {
    background: var(--pink-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--pink-700);
    transform: translateY(-1px);
}

/* Social Login Placeholder */
.sg-social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #F9FBFC;
}

.social-btn img {
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.8rem;
    margin: 0.75rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.divider span {
    padding: 0 1rem;
}

/* Footer */
.sg-auth-footer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.sg-auth-footer a {
    color: var(--pink-600);
    text-decoration: none;
    font-weight: 600;
}

/* Visual Side */
.sg-auth-side-visual {
    flex: 1;
    background: linear-gradient(135deg, #001E2B 0%, #FF1C7D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.sg-side-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sg-visual-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.sg-visual-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
}

.sg-visual-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.sg-visual-badge span {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Password Strength Meter */
.sg-password-strength {
    margin-top: 0.5rem;
}

.sg-strength-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.sg-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.sg-strength-fill.weak {
    width: 25%;
    background: #FF4040;
}

.sg-strength-fill.fair {
    width: 50%;
    background: #FFA500;
}

.sg-strength-fill.good {
    width: 75%;
    background: #4CAF50;
}

.sg-strength-fill.strong {
    width: 100%;
    background: #00A35C;
}

.sg-strength-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .sg-auth-side-form {
        flex: 0 0 50%;
    }
}

@media (max-width: 850px) {
    .sg-auth-page {
        flex-direction: column;
    }

    .sg-auth-side-form {
        flex: 1;
        padding: 3rem 1.5rem;
    }

    .sg-auth-side-visual {
        display: none;
    }
}