/* ============================================================
   auth-reset-password.css
   Standalone auth page — does NOT import dashboard-layout.css
   rem  → all fonts, spacing, sizing
   px   → borders and border-radius only
   No hardcoded hex — CSS variables only
   ============================================================ */

:root {
  --rp-primary:        #6F00FF;
  --rp-primary-hover:  #5800CC;
  --rp-danger:         #E11727;
  --rp-success-bg:     #F0FDF4;
  --rp-success-text:   #166534;
  --rp-error-bg:       #FEF2F2;
  --rp-error-text:     #991B1B;
  --rp-text-dark:      #1A1A1A;
  --rp-text-muted:     #6B7280;
  --rp-border:         #E2E8F0;
  --rp-bg:             #FFFFFF;
  --rp-input-radius:   8px;
  --rp-btn-radius:     10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--rp-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 85rem;
  padding: 1.2rem;
  min-height: 100vh;
}

.rp-image-wrap {
  display: none;
}

.rp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

.rp-form-wrap {
  width: min(100%, 28rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rp-logo {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.rp-logo img {
  display: block;
}

.rp-title {
  font-size: clamp(1.4rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rp-text-dark);
  line-height: 1.2;
}

.rp-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--rp-text-muted);
  margin-top: -0.5rem;
}

.rp-alert {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--rp-input-radius);
  line-height: 1.5;
}

.rp-alert--error {
  background: var(--rp-error-bg);
  color: var(--rp-error-text);
  border: 1px solid var(--rp-danger);
}

.rp-alert--success {
  background: var(--rp-success-bg);
  color: var(--rp-success-text);
  border: 1px solid var(--rp-success-text);
}

.rp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rp-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rp-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rp-text-dark);
}

.rp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Left icon inside input */
.rp-input-icon {
  position: absolute;
  left: 0.9375rem;
  color: var(--rp-text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.rp-input {
  width: 100%;
  height: 3.125rem;
  padding: 0 3rem 0 0.9375rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  color: var(--rp-text-dark);
  background: var(--rp-bg);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-input-radius);
  outline: none;
  transition: border-color 0.2s;
}

.rp-input--icon {
  padding-left: 2.5rem;
}

.rp-input::placeholder {
  color: var(--rp-text-muted);
  font-weight: 400;
}

.rp-input:focus {
  border-color: var(--rp-primary);
}

.rp-input.is-error {
  border-color: var(--rp-danger);
}

/* Eye toggle */
.rp-eye {
  position: absolute;
  right: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rp-text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.rp-eye:hover {
  color: var(--rp-primary);
}

.rp-eye__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.rp-code-wrap {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.rp-input--code {
  flex: 1;
  padding-right: 0.9rem;
  letter-spacing: 0.05em;
}

.rp-btn-send {
  flex-shrink: 0;
  height: 3rem;
  padding: 0 1.375rem;
  background: var(--rp-primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--rp-btn-radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.rp-btn-send:hover:not(:disabled) {
  background: var(--rp-primary-hover);
}

.rp-btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rp-field-err {
  font-size: 0.75rem;
  color: var(--rp-danger);
  min-height: 1rem;
  display: block;
}

.rp-btn-submit {
  width: 14rem;
  height: 3rem;
  align-self: center;
  background: var(--rp-primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--rp-btn-radius);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 0.5rem;
}

.rp-btn-submit:hover:not(:disabled) {
  background: var(--rp-primary-hover);
}

.rp-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rp-back {
  font-size: 0.875rem;
  color: var(--rp-text-muted);
  text-align: center;
}

.rp-back__link {
  color: var(--rp-primary);
  font-weight: 600;
  text-decoration: none;
}

.rp-back__link:hover {
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet — vertical stack: image above form, both centered, equal width */
@media (min-width: 48rem) {
  .rp-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem;
    gap: 1.2rem;
  }
 
  .rp-image-wrap {
    display: flex;
    width: 100%;
    max-width: 30rem;
  }
 
  .rp-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
  }
 
  .rp-form-wrap {
    width: 100%;
    max-width: 28.375rem;
  }
}
 
@media (min-width: 64rem) {
  .rp-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    gap: 1.5rem;
  }
 
  .rp-image-wrap {
    width: 40%;
    max-width: 24rem;
    flex-shrink: 0;
  }
 
  .rp-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
 
  .rp-form-wrap {
    width: auto;
    max-width: 28.375rem;
    flex: 1;
  }
}