/* styles.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* حاويات أساسية */
.auth-shell {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,64,175,0.9));
  box-shadow: 0 24px 70px rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.45);
}

.page-shell {
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top left, rgba(79,70,229,0.35), transparent),
    radial-gradient(circle at bottom right, rgba(8,47,73,0.5), transparent),
    rgba(15,23,42,0.92);
  box-shadow: 0 24px 70px rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
}

/* تبويبات login / signup */
.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
}

.tab {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(148,163,184);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.tab:hover {
  background: rgba(148,163,184,0.18);
}

.tab-active {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #f9fafb;
  box-shadow: 0 8px 22px rgba(79,70,229,0.55);
}

/* فورمات */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}

.form-input {
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  outline: none;
  transition: all 0.15s ease-out;
}

.form-input::placeholder {
  color: rgba(148,163,184,0.7);
}

.form-input:focus {
  border-color: rgba(129,140,248,1);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.9);
}

/* أزرار */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37,99,235,0.5);
  transition: transform 0.1s ease-out, box-shadow 0.15s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.7);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.7);
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.btn-ghost:hover {
  background: rgba(30,64,175,0.9);
  border-color: rgba(129,140,248,0.9);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}

.divider .line {
  flex: 1;
  height: 1px;
  background: rgba(148,163,184,0.4);
}

.divider .text {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

/* Cards */
.info-card {
  border-radius: 1.2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
}

.avatar-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alerts */
.alert {
  border-radius: 0.9rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.alert-error {
  background: rgba(248,113,113,0.12);
  color: #fecaca;
  border: 1px solid rgba(248,113,113,0.5);
}

.alert-success {
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.5);
}

/* Helpers */
.hidden {
  display: none;
}
