/* Вільні школи — desktop school selector (static). Mirrors EDUS auth-shared.scss. */

@font-face {
  font-family: "ProximaNova-Regular";
  src: url("/assets/fonts/ProximaNova-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ProximaNova-Semibold";
  src: url("/assets/fonts/ProximaNova-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fbfcfe;
  --card-bg: #ffffff;
  --text-primary: #394556;
  --text-secondary: #62666b;
  --text-muted: #8b95a5;
  --text-heading: #000000;
  --border-primary: #ccd3db;
  --border-light: #cfdeef;
  --accent-primary: #007aff;
  --accent-tertiary: #005ec5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #2b3245;
    --bg-secondary: #232a38;
    --card-bg: #232a38;
    --text-primary: #dce3ec;
    --text-secondary: #9aa5b4;
    --text-muted: #7b8698;
    --text-heading: #edf2f8;
    --border-primary: #3c4558;
    --border-light: #3a4356;
    --accent-primary: #5ea3e0;
    --accent-tertiary: #7ec4ff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg-secondary);
  font-family: "ProximaNova-Regular", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.login-wrap {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 96px;
  background-color: var(--bg-secondary);
  background-image:
    url("/assets/login-left-top-bg.svg"),
    url("/assets/log-right-bottom-bg.jpg");
  background-position:
    left top,
    right bottom;
  background-repeat: no-repeat, no-repeat;
  background-size: clamp(220px, 26vw, 380px) auto, clamp(160px, 18vw, 260px) auto;
}

.logo {
  position: absolute;
  top: 24px;
  left: 32px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  background-image: url("/assets/logo-256.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20, 33, 61, 0.08);
}

.regist-title {
  margin: 0 0 8px;
  text-align: center;
  color: var(--text-heading);
  font-family: "ProximaNova-Semibold", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.login-subtitle {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.school-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.school-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "ProximaNova-Regular", sans-serif;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.school-item:hover,
.school-item:focus-visible {
  border-color: var(--accent-primary);
  outline: none;
}

.school-item:active {
  transform: scale(0.99);
}

.school-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-item__chevron {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--text-muted);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.school-item:hover .school-item__chevron,
.school-item:focus-visible .school-item__chevron {
  color: var(--accent-primary);
  transform: translateX(3px);
}

.app-footer {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.app-footer__divider {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  opacity: 0.45;
  user-select: none;
}

.platform-site {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.platform-site .link {
  color: var(--accent-tertiary);
  border-bottom: 1px solid var(--border-light);
  line-height: 13px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease;
}

.platform-site .link:hover {
  color: var(--accent-primary);
}

.login-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.login-legal-links a {
  color: var(--accent-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-legal-links a:hover {
  color: var(--accent-primary);
}

@media (max-width: 767px) {
  .login-wrap {
    padding: 24px 16px 110px;
  }

  .logo {
    top: 14px;
    left: 16px;
    width: 64px;
    height: 64px;
  }

  .login-card {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .app-footer {
    flex-direction: column;
    gap: 8px;
  }

  .app-footer__divider--desktop {
    display: none;
  }
}
