/* assets/arcana_login_style.css */

/* Typography & Root Variables */
:root {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  --glass-color: rgba(15, 23, 42, 0.65);
  /* This is the line that changed - from rgba(94, 234, 212, 0.35) to rgba(255, 255, 255, 0.2); */
  --glass-border: rgba(255, 255, 255, 0.2); 
  --accent: #7c3aed;
  --accent-secondary: #38bdf8;
  --danger: #f97316;
  --success: #22c55e;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --input-bg: rgba(2, 6, 23, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 40%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.2), transparent 36%),
    #020617;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

h1, h2 {
  font-family: 'Orbitron', sans-serif;
}

/* Scrollbar Styles */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.24); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.7), rgba(236, 72, 153, 0.7));
  border-radius: 999px;
}

/* Main Modal */
.login-modal {
  display: flex;
  width: 100%;
  max-width: 900px;
  background-color: var(--glass-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Promo Panel */
.promo-panel {
  flex-basis: 45%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

.promo-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
}

.promo-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.promo-text-group {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  text-align: left;
}


.promo-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.promo-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* This rule makes the specific text smaller */
.promo-text-group p {
    font-size: 0.85rem;
}

.promo-footer {
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}

/* Right Form Panel */
.form-panel {
  flex-basis: 55%;
  padding: 48px;
  position: relative;
  border-left: 1px solid var(--glass-border);
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}

.form-panel h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
}

/* Form Elements */
form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-muted); }

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: "Outfit", sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.form-options { display: flex; justify-content: flex-end; align-items: center; font-size: 0.875rem; }

a.forgot-link, .signup-link a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 500;
}
a.forgot-link:hover, .signup-link a:hover { text-decoration: underline; }

.submit-btn {
  background-color: var(--accent);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) { background-color: #6d28d9; }
.submit-btn:disabled { background-color: #4b5563; cursor: not-allowed; }

/* Signup Link */
.signup-link { text-align: left; font-size: 0.9375rem; margin-top: 2rem; color: var(--text-muted); }

/* Alert Messages */
.alert { padding: 1rem; margin-bottom: 1rem; border-radius: 6px; font-size: 0.9rem; border: 1px solid; }
.alert-error { background-color: rgba(249, 115, 22, 0.1); color: #fb923c; border-color: var(--danger); }
.alert-error p { margin: 0; }
.alert-success { background-color: rgba(34, 197, 94, 0.1); color: #4ade80; border-color: var(--success); }

/* Responsive */
@media (max-width: 768px) {
  body { align-items: flex-start; padding-top: 2rem; }
  .login-modal { flex-direction: column; max-width: 400px; }
  .promo-panel { display: none; }
  .form-panel { flex-basis: 100%; border-left: none; padding: 32px; }
}