/* ===========================
   AQARX – Auth Pages CSS
   (login.html + register.html)
=========================== */

/* BODY */
.auth-body {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
}

/* BACK TO HOME */
.back-home {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 100;
}

.auth-logo {
  height: 44px;
  width: auto;
}

/* WRAPPER */
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.auth-left {
  position: relative;
  background: linear-gradient(135deg, #1a0000 0%, #0a0000 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 50px;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(204,0,0,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23cc0000' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 360px;
}

.auth-left-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.auth-left-content p {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 32px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--silver);
}

.auth-feature i {
  width: 32px;
  height: 32px;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--red);
  flex-shrink: 0;
}

/* ===== RIGHT PANEL ===== */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  overflow-y: auto;
}

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

/* AUTH HEADER */
.auth-header {
  margin-bottom: 28px;
}

.auth-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  color: var(--gray);
}

/* ACCOUNT TYPE SELECTOR */
.account-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.type-btn {
  padding: 12px 10px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: var(--silver);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.type-btn i { font-size: 20px; color: #444; transition: color 0.2s; }

.type-btn:hover,
.type-btn.active {
  border-color: var(--red);
  background: rgba(204,0,0,0.08);
  color: var(--white);
}

.type-btn:hover i,
.type-btn.active i { color: var(--red); }

/* SOCIAL LOGIN */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.social-login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
}

.social-login-btn:hover   { opacity: 0.9; }
.social-login-btn:active  { transform: scale(0.98); }

.social-login-btn.google {
  background: var(--white);
  color: #333;
  border: 1px solid #ddd;
}

.social-login-btn.facebook {
  background: #1877f2;
  color: var(--white);
}

.social-login-btn i { font-size: 16px; }

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

.divider span {
  font-size: 12px;
  color: #444;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

/* FORM */
.form-group {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--silver);
  margin-bottom: 7px;
}

.forgot-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: none;
  letter-spacing: 0;
}

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

.input-wrap > i {
  position: absolute;
  left: 14px;
  color: #444;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 44px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}

.toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}

.toggle-pass:hover { color: var(--silver); }

/* PASSWORD STRENGTH */
.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

#strengthLabel {
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #444;
  white-space: nowrap;
}

/* FORM CHECKS */
.form-check-row {
  margin-bottom: 12px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  line-height: 1.5;
}

.check-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ERROR & SUCCESS */
.auth-error {
  background: rgba(204,0,0,0.08);
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ff6666;
  margin-bottom: 16px;
}

.auth-error i { flex-shrink: 0; }

.auth-success {
  background: rgba(34,204,102,0.08);
  border: 1px solid rgba(34,204,102,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #22cc66;
  margin-top: 14px;
}

.auth-success i { font-size: 18px; }

/* SUBMIT BUTTON */
.btn-auth {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.btn-auth:hover   { background: var(--red-dark); }
.btn-auth:active  { transform: scale(0.98); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }

/* FOOTER NOTE */
.auth-footer-note {
  font-size: 12px;
  color: #444;
  text-align: center;
  line-height: 1.6;
}

.link-red {
  color: var(--red);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left    { display: none; }
  .auth-right   { padding: 100px 24px 40px; }
  .back-home    { top: 16px; }
}

@media (max-width: 400px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .account-type-selector { grid-template-columns: 1fr 1fr; }
}
