/* assets/css/auth.css */

:root {
  --primary: #ffc5c7;
  --primary-soft: #fff1f2;
  --primary-border: rgba(255, 182, 187, 0.55);
  --bg-page: radial-gradient(circle at top left, #fff1f2, #fff8f9 60%);
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --heading: #0f172a;
  --brand-color: #cf333e;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 182, 187, 0.45);
  --shadow-glass: 0 24px 60px rgba(31, 41, 55, 0.12), 0 10px 24px rgba(31, 41, 55, 0.08);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper */
.auth-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Panel */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, var(--brand-color), #e05560);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  color: white;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: auto;
}

.auth-left-footer {
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.auth-left-footer a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
}

/* Right Panel */
.auth-right {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-page);
}

/* Glass Card */
.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(12px);
}

/* Auth Header */
.auth-header {
  margin-bottom: 28px;
}

.auth-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Flash Messages */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--primary-border);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(207, 51, 62, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Password Toggle */
.input-password {
  position: relative;
}

.input-password input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 6px;
}

.btn-primary:hover {
  background: #b82c36;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.login-link a {
  color: var(--brand-color);
  font-weight: 600;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-left {
    padding: 40px 20px;
    min-height: auto;
  }

  .auth-left-footer {
    margin-top: 20px;
  }

  .auth-card {
    padding: 28px 20px;
  }
}