/* ======================================
   LOGIN – PREMIUM BLACK & WHITE
   (SYSTEM LIGHT / DARK MODE)
====================================== */

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ======================================
   THEME VARIABLES – LIGHT (DEFAULT)
====================================== */
:root {
  --bg-page: #F5F6F8;
  --bg-card: #FFFFFF;
  --bg-input: #FAFAFA;

  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #8A8A8A;

  --border: #E5E7EB;

  --btn-bg: #111111;
  --btn-text: #FFFFFF;

  --error: #D93025;
  --success: #0F9D58;

  --radius-lg: 16px;
  --radius-md: 12px;

  --shadow-card: 0 18px 45px rgba(0,0,0,0.10);
  --shadow-hover: 0 28px 65px rgba(0,0,0,0.14);
}

/* ======================================
   SYSTEM DARK MODE
====================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0E0E0E;
    --bg-card: #161616;
    --bg-input: #1C1C1C;

    --text-primary: #F1F1F1;
    --text-secondary: #B5B5B5;
    --text-muted: #8A8A8A;

    --border: rgba(255,255,255,0.12);

    --btn-bg: #FFFFFF;
    --btn-text: #111111;

    --shadow-card: 0 20px 55px rgba(0,0,0,0.85);
    --shadow-hover: 0 30px 75px rgba(0,0,0,0.95);
  }
}

/* GLOBAL LAYOUT */
body {
  background: var(--bg-page);
  color: var(--text-primary);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* AUTH CONTENT AREA */
.page-content {
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 80px 16px;
}


/* ======================================
   LOGIN CARD
====================================== */
.login-container {
  width: 360px;
  background: var(--bg-card);
  padding: 42px 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* TITLE */
.login-container h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ======================================
   FORM
====================================== */
.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);

  font-size: 14px;
  color: var(--text-primary);

  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  outline: none;
  border-color: var(--btn-bg);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}

/* ======================================
   BUTTON
====================================== */
button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;

  background: var(--btn-bg);
  color: var(--btn-text);

  border: none;
  border-radius: var(--radius-md);

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ======================================
   FOOTER TEXT
====================================== */
p {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ======================================
   MESSAGES
====================================== */
.error {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

.success {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}
