/* Urobank — shared styles for the auth pages (login / forgot / reset password) */

/* Raleway — self hosted */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-regular.woff2") format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-600.woff2") format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-700.woff2") format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-800.woff2") format('woff2');
}

:root {
  --primary-blue: #2e667d;
  --hover-blue: #3d7389;
  --primary-yellow: #FFD700;
  --hover-yellow: #e6c200;
  --light-blue: #dff1f1;
  --ink: #16333f;
  --slate: #4e6672;
  --line: #dce8ee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.auth {
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--light-blue);
  padding: 2rem 1.25rem 4rem;
}

.auth-shell {
  width: 100%;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 2.1rem 2rem;
  box-shadow: 0 10px 30px rgba(22, 51, 63, 0.12);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.auth-brand img { height: 44px; width: auto; max-width: 100%; display: block; }

.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-align: center;
}

.auth-sub {
  color: var(--slate);
  font-size: 0.92rem;
  text-align: center;
  margin: 0.25rem 0 1.4rem;
}

.auth-alert {
  background: #fff8e1;
  border: 1px solid rgba(230, 194, 0, 0.55);
  color: #6b5300;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

.auth-field { margin-bottom: 1.1rem; }

.auth-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(46, 102, 125, 0.18);
}

.auth-aside {
  text-align: right;
  margin-top: 0.4rem;
}
.auth-aside a {
  color: var(--primary-blue);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-aside a:hover { text-decoration: underline; }

.auth-submit {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--primary-blue);
  color: var(--primary-yellow);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.auth-submit:hover { background: var(--hover-blue); }
.auth-submit:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 2px;
}

.auth-divider {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0 1.2rem;
}

.auth-alt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate);
}
.auth-alt a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
}
.auth-alt a:hover { text-decoration: underline; }

.auth-note {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.6rem;
}
.auth-note strong { color: var(--primary-blue); }
.auth-note ul { margin: 0.4rem 0 0 1.1rem; }
.auth-note li { margin: 0.15rem 0; }

.auth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.68rem;
  color: #6c757d;
  background: var(--light-blue);
  border-top: 1px solid #cde4e4;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.auth-footer a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-footer a:hover { color: var(--primary-blue); }

@media (max-height: 640px) {
  body.auth { justify-content: flex-start; padding-top: 1.5rem; }
  .auth-footer { position: static; margin-top: 1.5rem; background: transparent; border-top: none; }
}
