/* ============================================
   MentorMarket — Auth Pages CSS
   Login + Signup — Two-column layout
   ============================================ */

/* ============================================
   AUTH PAGE WRAPPER
   ============================================ */
.mm-auth-page {
    display:    flex;
    min-height: calc(100vh - 62px); /* 62px = sticky navbar height */
    background: #0d1526;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   LEFT PANEL (decorative — hidden on mobile)
   ============================================ */
.mm-auth-left {
    width:           42%;
    min-width:       380px;
    background:      linear-gradient(145deg, #0f1c3a 0%, #1a2a50 50%, #111827 100%);
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         60px 48px;
    position:        relative;
    overflow:        hidden;
    flex-shrink:     0;
    min-height:      100%;
}

/* Ambient glow blobs on left panel */
.mm-auth-left::before {
    content:    '';
    position:   absolute;
    top:        -20%;
    left:       -20%;
    width:      500px;
    height:     500px;
    background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.mm-auth-left::after {
    content:    '';
    position:   absolute;
    bottom:     -20%;
    right:      -10%;
    width:      400px;
    height:     400px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
    pointer-events: none;
}

/* Dot grid texture */
.mm-auth-left-content {
    position:   relative;
    z-index:    2;
    width:      100%;
    max-width:  360px;
}

/* Brand block */
.mm-brand-large {
    display:     flex;
    align-items: center;
    gap:         12px;
    margin-bottom: 40px;
}

.mm-brand-icon-lg {
    width:           48px;
    height:          48px;
    background:      linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius:   14px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       22px;
    color:           white;
    box-shadow:      0 8px 20px rgba(79,70,229,0.35);
    flex-shrink:     0;
}

.mm-brand-text-lg {
    font-family:    var(--mm-font-main);
    font-size:      24px;
    font-weight:    800;
    color:          white;
    letter-spacing: -0.3px;
}

/* Headline on left */
.mm-auth-left-content h2 {
    font-size:      32px;
    font-weight:    800;
    color:          white;
    line-height:    1.2;
    letter-spacing: -0.5px;
    margin-bottom:  14px;
}

.mm-auth-left-content p {
    font-size:   15px;
    color:       rgba(255,255,255,0.55);
    line-height: 1.8;
    max-width:   320px;
}

/* Testimonial card on left panel */
.mm-auth-testimonial {
    margin-top:    36px;
    background:    rgba(255,255,255,0.06);
    border:        1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding:       20px 22px;
    backdrop-filter: blur(8px);
}

.mm-auth-testimonial-text {
    font-size:    14px;
    color:        rgba(255,255,255,0.8);
    line-height:  1.75;
    font-style:   italic;
    margin-bottom: 16px;
}

.mm-auth-testimonial-author {
    display:     flex;
    align-items: center;
    gap:         10px;
}

/* Features list (signup page) */
.mm-auth-features {
    margin-top: 32px;
    display:    flex;
    flex-direction: column;
    gap:        16px;
}

.mm-auth-feature {
    display:     flex;
    align-items: center;
    gap:         14px;
}

.mm-auth-feature-icon {
    width:           38px;
    height:          38px;
    border-radius:   10px;
    background:      rgba(79,70,229,0.2);
    border:          1px solid rgba(79,70,229,0.3);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       16px;
    color:           #a5b4fc;
    flex-shrink:     0;
}

.mm-auth-feature span {
    font-size:   14px;
    color:       rgba(255,255,255,0.7);
    line-height: 1.5;
    font-weight: 500;
}

/* ============================================
   RIGHT PANEL — Form side
   ============================================ */
.mm-auth-right {
    flex:            1;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         48px 32px;
    background:      #f8fafc;
    overflow-y:      auto;
    min-height:      100%;
}

.mm-auth-form-wrap {
    width:     100%;
    max-width: 440px;
}

/* ============================================
   FORM HEADER
   ============================================ */
.mm-auth-title {
    font-family:    var(--mm-font-main);
    font-size:      26px;
    font-weight:    800;
    color:          #0f172a;
    margin-bottom:  6px;
    letter-spacing: -0.3px;
}

.mm-auth-subtitle {
    font-size:     14px;
    color:         #64748b;
    margin-bottom: 28px;
}

.mm-auth-subtitle a {
    color:       #4f46e5;
    font-weight: 600;
}

.mm-auth-subtitle a:hover {
    color:           #3730a3;
    text-decoration: underline;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.mm-form-group {
    margin-bottom: 18px;
}

.mm-form-label {
    display:        block;
    font-family:    var(--mm-font-main);
    font-weight:    600;
    font-size:      12px;
    color:          #475569;
    margin-bottom:  7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mm-input {
    width:         100%;
    padding:       12px 16px;
    border:        1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family:   var(--mm-font-body);
    font-size:     14px;
    color:         #0f172a;
    background:    white;
    transition:    all 0.2s ease;
    outline:       none;
    box-shadow:    0 1px 2px rgba(0,0,0,0.04);
}

.mm-input:focus {
    border-color: #4f46e5;
    box-shadow:   0 0 0 3px rgba(79,70,229,0.1);
}

.mm-input::placeholder { color: #cbd5e1; }

/* Password field with toggle */
.mm-input-password {
    position: relative;
}

.mm-input-password .mm-input {
    padding-right: 48px;
}

.mm-toggle-password {
    position:    absolute;
    right:       14px;
    top:         50%;
    transform:   translateY(-50%);
    background:  none;
    border:      none;
    color:       #94a3b8;
    cursor:      pointer;
    font-size:   16px;
    padding:     4px;
    line-height: 1;
    transition:  color 0.2s ease;
}

.mm-toggle-password:hover { color: #4f46e5; }

/* Password strength bar (signup) */
.mm-password-strength {
    margin-top: 8px;
    display:    flex;
    gap:        4px;
}

.mm-password-strength span {
    flex:          1;
    height:        4px;
    border-radius: 2px;
    background:    #e2e8f0;
    transition:    background 0.3s ease;
}

/* ============================================
   ROLE TOGGLE (signup)
   ============================================ */
.mm-role-toggle {
    display:       grid;
    grid-template-columns: 1fr 1fr;
    gap:           6px;
    margin-bottom: 22px;
    background:    #e2e8f0;
    border-radius: 14px;
    padding:       5px;
}

.mm-role-btn {
    flex:            1;
    padding:         11px 12px;
    border:          none;
    border-radius:   10px;
    background:      transparent;
    cursor:          pointer;
    transition:      all 0.2s ease;
    text-align:      center;
    font-family:     var(--mm-font-main);
    font-weight:     600;
    font-size:       13px;
    color:           #64748b;
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             6px;
    white-space:     nowrap;
}

.mm-role-btn i {
    font-size:  15px;
    color:      #94a3b8;
    transition: color 0.2s ease;
}

.mm-role-btn:hover {
    color: #4f46e5;
}

.mm-role-btn:hover i { color: #4f46e5; }

.mm-role-btn.active {
    background:  white;
    color:       #4f46e5;
    box-shadow:  0 2px 8px rgba(0,0,0,0.1);
}

.mm-role-btn.active i { color: #4f46e5; }

.mm-role-info {
    font-size:     12px;
    color:         #64748b;
    background:    #f1f5f9;
    border-radius: 8px;
    padding:       10px 14px;
    margin-bottom: 20px;
    display:       flex;
    align-items:   center;
    gap:           8px;
}

.mm-role-info i { color: #4f46e5; font-size: 14px; }

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.mm-btn-primary {
    background:    linear-gradient(135deg, #4f46e5, #3730a3);
    color:         white !important;
    border:        none;
    border-radius: 10px;
    font-family:   var(--mm-font-main);
    font-weight:   700;
    font-size:     15px;
    padding:       13px 24px;
    transition:    all 0.25s ease;
    box-shadow:    0 4px 16px rgba(79,70,229,0.3);
    cursor:        pointer;
    display:       inline-flex;
    align-items:   center;
    justify-content: center;
    gap:           8px;
    width:         100%;
}

.mm-btn-primary:hover {
    transform:  translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.4);
    color:      white !important;
}

.mm-btn-primary:active { transform: translateY(0); }

/* ============================================
   DIVIDER
   ============================================ */
.mm-auth-divider {
    display:     flex;
    align-items: center;
    gap:         12px;
    color:       #cbd5e1;
    font-size:   13px;
    margin:      24px 0;
}

.mm-auth-divider::before,
.mm-auth-divider::after {
    content:    '';
    flex:       1;
    height:     1px;
    background: #e2e8f0;
}

.mm-auth-divider span { white-space: nowrap; }

/* ============================================
   TESTIMONIAL AVATAR (small)
   ============================================ */
.mm-testimonial-avatar {
    width:           42px;
    height:          42px;
    border-radius:   50%;
    background:      linear-gradient(135deg, #4f46e5, #06b6d4);
    color:           white;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-family:     var(--mm-font-main);
    font-weight:     700;
    font-size:       14px;
    flex-shrink:     0;
}

.mm-testimonial-avatar.sm {
    width:     36px;
    height:    36px;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .mm-auth-left  { display: none !important; }
    .mm-auth-page  { min-height: calc(100vh - 62px); }
    .mm-auth-right {
        background: #f8fafc;
        padding:    40px 24px;
        align-items: flex-start;
        padding-top: 48px;
    }
    .mm-auth-form-wrap { max-width: 480px; }
}

@media (max-width: 480px) {
    .mm-auth-title  { font-size: 22px; }
    .mm-role-toggle { grid-template-columns: 1fr 1fr; }
    .mm-auth-right  { padding: 32px 16px; }
}
