/* =========================================
   auth.css
   Login, Register, and Forgot Password
   pages — split layout, brand panel,
   auth card, and form input styles.
   Depends on: global.css, components.css
========================================= */

/* =========================================
   SPLIT PAGE WRAPPER
========================================= */
.auth-page-wrap {
    display: flex;
    min-height: calc(100vh - 72px);
    background: #f8f9fa;
}

/* =========================================
   LEFT PANEL — BRAND / ILLUSTRATION
========================================= */
.auth-split-left {
    width: 40%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0066ff 0%, #0039cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.auth-brand { color: #fff; max-width: 400px; }
.auth-brand-logo { margin-bottom: 28px; }

.auth-brand h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff;
}

.auth-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
}

.auth-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-perks li {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* =========================================
   RIGHT PANEL — FORM
========================================= */
.auth-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: #f8f9fa;
    overflow-y: auto;
}

/* =========================================
   AUTH CARD
========================================= */
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.08);
}

.auth-card-wide { max-width: 680px; }

.auth-card-header             { margin-bottom: 28px; }
.auth-card-header h2          { font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.auth-card-header p           { font-size: 14px; color: #64748b; }

/* =========================================
   AUTH FORM FIELDS
========================================= */
.auth-form .form-group          { margin-bottom: 18px; }

.auth-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}

/* Icon spacing fix */
.auth-form .input-icon-wrap input { padding-left: 44px !important; }

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.auth-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.auth-form .form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* =========================================
   MISC AUTH ELEMENTS
========================================= */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 18px;
}

.auth-switch a       { color: #0066ff; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .auth-page-wrap   { flex-direction: column; min-height: auto; }
    .auth-split-left  { width: 100%; padding: 40px 30px; }
    .auth-brand h1    { font-size: 24px; }
    .auth-split-right { padding: 30px 20px; align-items: flex-start; }
    .auth-card        { padding: 28px 22px; }
}

@media (max-width: 650px) {
    .large-box { padding: 30px 20px; }
}