﻿/* ==========================================================================
   Auth Pages â€” Sign In / Sign Up / Forgot Password
   ========================================================================== */

.auth-page {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Left branding panel */
.auth-panel-left {
    flex: 0 0 50%;
    background-color: var(--theme-color-navy);
    color: #fff;
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.auth-brand-badge .badge-box {
    background: #fff;
    color: var(--theme-color-navy);
    font-size: 13px;
    font-weight: 900;
    padding: 4px 6px;
    letter-spacing: 0.5px;
}

.auth-brand-badge .badge-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

.auth-panel-left h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 20px;
    max-width: 360px;
}

.auth-panel-left .auth-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin: 0 0 36px;
    max-width: 360px;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.auth-features li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: var(--theme-color-secondary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

/* Right form panel */
.auth-panel-right {
    flex: 1;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-card-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--theme-color-primary);
    margin: 0 0 4px;
    line-height: 1.2;
}

.auth-card-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #778596;
    margin: 0 0 28px;
}

/* Form fields */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #374257;
    margin-bottom: 6px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    font-size: 15px;
    color: #0c1417;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.auth-field input:focus {
    border-bottom-color: var(--theme-color-primary);
}

.auth-field-wrap {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #778596;
    display: flex;
    align-items: center;
}

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 24px;
}

.auth-forgot-link {
    font-size: 13px;
    color: #374257;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--theme-color-primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    font-family: inherit;
    margin-bottom: 20px;
}

.auth-submit-btn:hover {
    background-color: #0558b8;
}

/* Footer links */
.auth-card-footer {
    font-size: 14px;
    color: #374257;
    text-align: center;
    margin-top: 4px;
}

.auth-card-footer a {
    color: var(--theme-color-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-terms {
    font-size: 12px;
    color: #778596;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-terms a {
    color: var(--theme-color-primary);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* Notice / error messages */
.auth-notice {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-notice.is-error {
    background: #fff3f3;
    border-left: 3px solid #cf3a09;
    color: #cf3a09;
}

.auth-notice.is-success {
    background: #f0f9ea;
    border-left: 3px solid var(--theme-color-secondary);
    color: #2d6a00;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-panel-left {
        flex: none;
        padding: 40px 24px;
    }

    .auth-panel-left h1 {
        font-size: 30px;
    }

    .auth-features {
        display: none;
    }

    .auth-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .auth-panel-right {
        padding: 24px 16px;
    }
}

/* Style CRM Auth Form to match theme styles */
.auth-panel-right .crm-auth-container {
    max-width: 400px;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.auth-panel-right .crm-auth-tabs {
    display: flex;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.auth-panel-right .crm-tab-button {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #778596;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-panel-right .crm-tab-button.active {
    color: var(--theme-color-primary);
    border-bottom-color: var(--theme-color-primary);
    background: #fff;
}

.auth-panel-right .crm-tab-button:hover {
    background: rgba(8, 107, 219, 0.04);
}

.auth-panel-right .crm-tab-content {
    padding: 36px 30px;
}

.auth-panel-right .crm-form-group {
    margin-bottom: 20px;
}

.auth-panel-right .crm-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #374257;
    margin-bottom: 6px;
}

.auth-panel-right .crm-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    font-size: 15px;
    color: #0c1417;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.auth-panel-right .crm-form-group input:focus {
    border-bottom-color: var(--theme-color-primary);
    box-shadow: none;
    background: #fff;
}

.auth-panel-right .crm-button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--theme-color-primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    font-family: inherit;
    margin-top: 10px;
}

.auth-panel-right .crm-button:hover {
    background-color: #0558b8;
}

.auth-panel-right .crm-forgot-password-link,
.auth-panel-right .crm-back-to-login {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.auth-panel-right .crm-forgot-password-link a,
.auth-panel-right .crm-back-to-login a {
    font-size: 13px;
    color: #374257;
    text-decoration: none;
}

.auth-panel-right .crm-forgot-password-link a:hover,
.auth-panel-right .crm-back-to-login a:hover {
    text-decoration: underline;
    color: var(--theme-color-primary);
}

.auth-panel-right .crm-auth-container label .required {
    color: #cf3a09;
}

