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

body.saas-auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
}

.saas-auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel - Gradient Branding */
.saas-auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a, #4f46e5, #9333ea);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
    overflow: hidden;
}

.saas-auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.saas-branding {
    position: relative;
    z-index: 10;
}

.saas-branding h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.saas-branding p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 80%;
    line-height: 1.6;
}

/* Right Panel - Form */
.saas-auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f8fafc; /* Slight off-white to make the card pop */
}

.saas-form-wrapper {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 0 20px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow 0.3s ease;
}

.saas-form-wrapper:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.28), 0 0 25px rgba(59, 130, 246, 0.15);
}

.saas-logo {
    max-height: 48px;
    margin-bottom: 2rem;
}

.saas-form-header {
    margin-bottom: 2rem;
}

.saas-form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.saas-form-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Modern Inputs */
.saas-input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.saas-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.saas-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.saas-input-wrapper .icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.saas-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.saas-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.saas-input:focus ~ .icon {
    color: #3b82f6;
}

.saas-toggle-password {
    position: absolute;
    right: 1rem;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.saas-toggle-password:hover {
    color: #0f172a;
}

/* Primary Button */
.saas-btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.saas-btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Links & Utilities */
.saas-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.saas-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.saas-footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.saas-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Checkbox */
.saas-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.saas-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .saas-auth-left {
        display: none;
    }
    .saas-auth-right {
        padding: 2rem 1rem;
    }
}
