/* ============================================
   AUTH PAGES – Login / Register / Reset Password
   ============================================ */

.mp-auth-section {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  background: var(--mp-bg-card);
}

.mp-auth-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 72px);
}

/* ------- LEFT: BRANDING ------- */

.mp-auth-branding {
  flex: 0 0 42%;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.04), rgba(229, 57, 53, 0.01));
  border-right: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--mp-space-12);
  position: relative;
  overflow: hidden;
}

.mp-auth-branding::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.mp-auth-branding::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.mp-auth-branding__content {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.mp-auth-logo {
    display: flex;
    align-items: center;
    gap: var(--mp-space-3);
    margin-bottom: var(--mp-space-10);
}

.mp-auth-logo__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--mp-radius-md);
    background: var(--mp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mp-font-heading);
    font-weight: 800;
    font-size: var(--mp-text-xl);
    color: white;
}

.mp-auth-logo__text {
    font-family: var(--mp-font-heading);
    font-size: var(--mp-text-xl);
    color: var(--mp-text);
}

.mp-auth-logo__text strong {
    color: var(--mp-primary);
}

.mp-auth-branding__title {
    font-family: var(--mp-font-heading);
    font-size: var(--mp-text-3xl);
    font-weight: 800;
    margin-bottom: var(--mp-space-4);
    line-height: 1.2;
}

.mp-auth-branding__desc {
    color: var(--mp-text-secondary);
    font-size: var(--mp-text-base);
    line-height: 1.7;
    margin-bottom: var(--mp-space-10);
}

.mp-auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--mp-space-4);
}

.mp-auth-feature {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
  color: var(--mp-text-secondary);
  font-size: var(--mp-text-sm);
  padding: var(--mp-space-3) var(--mp-space-4);
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-md);
  transition: all var(--mp-duration) var(--mp-ease);
}

.mp-auth-feature:hover {
  border-color: var(--mp-primary);
  background: rgba(229, 57, 53, 0.03);
  color: var(--mp-text);
}

.mp-auth-feature svg {
    color: var(--mp-primary);
    flex-shrink: 0;
}

/* ------- RIGHT: FORM ------- */

.mp-auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--mp-space-8);
}

.mp-auth-form-card {
    width: 100%;
    max-width: 440px;
}

.mp-auth-form__title {
    font-family: var(--mp-font-heading);
    font-size: var(--mp-text-3xl);
    font-weight: 800;
    margin-bottom: var(--mp-space-2);
}

.mp-auth-form__subtitle {
    color: var(--mp-text-muted);
    font-size: var(--mp-text-sm);
    margin-bottom: var(--mp-space-8);
}

.mp-auth-form .mp-form-group {
    margin-bottom: var(--mp-space-5);
}

.mp-auth-form .mp-form-label {
    display: flex;
    align-items: center;
    gap: var(--mp-space-2);
    margin-bottom: var(--mp-space-2);
    font-size: var(--mp-text-sm);
    font-weight: 600;
    color: var(--mp-text-secondary);
}

.mp-auth-form .mp-form-input {
    height: 48px;
    font-size: var(--mp-text-base);
    padding: 0 var(--mp-space-4);
    border-radius: var(--mp-radius-md);
}

.mp-auth-form .mp-form-input:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(229, 62, 48, 0.15);
}

/* Password field with toggle */

.mp-password-field {
    position: relative;
}

.mp-password-field .mp-form-input {
    padding-right: var(--mp-space-12);
}

.mp-password-toggle {
    position: absolute;
    right: var(--mp-space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--mp-text-muted);
    cursor: pointer;
    padding: var(--mp-space-1);
    transition: color var(--mp-duration);
}

.mp-password-toggle:hover,
.mp-password-toggle.is-visible {
    color: var(--mp-primary);
}

/* Divider */

.mp-auth-divider {
    display: flex;
    align-items: center;
    gap: var(--mp-space-4);
    margin: var(--mp-space-6) 0;
    color: var(--mp-text-muted);
    font-size: var(--mp-text-sm);
}

.mp-auth-divider::before,
.mp-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mp-border);
}

/* Switch link */

.mp-auth-switch {
    text-align: center;
    font-size: var(--mp-text-sm);
    color: var(--mp-text-muted);
    margin: 0;
}

.mp-auth-link {
    color: var(--mp-primary);
    text-decoration: none;
    font-size: var(--mp-text-sm);
    transition: color var(--mp-duration);
}

.mp-auth-link:hover {
    color: var(--mp-primary-hover);
    text-decoration: underline;
}

.mp-auth-link-strong {
    color: var(--mp-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--mp-duration);
}

.mp-auth-link-strong:hover {
    color: var(--mp-primary-hover);
}

/* Form row (2 cols) */

.mp-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mp-space-4);
}

/* Password strength */

.mp-password-strength {
    display: flex;
    align-items: center;
    gap: var(--mp-space-3);
    margin-bottom: var(--mp-space-5);
    padding: 0 var(--mp-space-1);
}

.mp-password-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--mp-bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.mp-password-strength__fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.mp-password-strength__text {
    font-size: var(--mp-text-xs);
    font-weight: 600;
    min-width: 80px;
    text-align: right;
    transition: color 0.3s ease;
}

/* Alerts */

.mp-alert {
    padding: var(--mp-space-4);
    border-radius: var(--mp-radius-md);
    font-size: var(--mp-text-sm);
    margin-bottom: var(--mp-space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--mp-space-3);
    line-height: 1.5;
}

.mp-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.mp-alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}

.mp-alert-success {
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid rgba(46, 160, 67, 0.3);
    color: #2ea043;
}

.mp-alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    color: #d29922;
}

.mp-alert-info {
    background: rgba(56, 132, 255, 0.1);
    border: 1px solid rgba(56, 132, 255, 0.3);
    color: #3884ff;
}

/* ------- RESET PASSWORD PAGE ------- */

.mp-auth-reset-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: var(--mp-space-12) 0;
    text-align: center;
}

/* ------- RESPONSIVE ------- */

@media (max-width: 1024px) {
    .mp-auth-branding {
        flex: 0 0 38%;
        padding: var(--mp-space-8);
    }
}

@media (max-width: 768px) {
    .mp-auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .mp-auth-branding {
        flex: none;
        padding: var(--mp-space-8) var(--mp-space-6);
        border-right: none;
        border-bottom: 1px solid var(--mp-border);
    }

    .mp-auth-branding__title {
        font-size: var(--mp-text-2xl);
    }

    .mp-auth-branding__desc {
        display: none;
    }

    .mp-auth-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--mp-space-2);
    }

    .mp-auth-feature {
        flex: 1 1 calc(50% - var(--mp-space-2));
        font-size: var(--mp-text-xs);
        padding: var(--mp-space-2) var(--mp-space-3);
    }

    .mp-auth-form-wrapper {
        padding: var(--mp-space-6) var(--mp-space-4);
    }

    .mp-form-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mp-auth-branding {
        padding: var(--mp-space-6) var(--mp-space-4);
    }

    .mp-auth-features {
        display: none;
    }

    .mp-auth-form__title {
        font-size: var(--mp-text-2xl);
    }
}
