/*
  ══════════════════════════════════════════════════════
  PORTAL SHARED STYLES — 1C UzCloud
  ══════════════════════════════════════════════════════

  FONT NOTE:
  Google Sans is Google's proprietary brand font.
  We use DM Sans as the closest open-source alternative.

  If you have the Google Sans font files, replace with:
  ──────────────────────────────────────────────────────
  @font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Regular.woff2') format('woff2');
    font-weight: 400;
  }
  @font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Medium.woff2') format('woff2');
    font-weight: 500;
  }
  @font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Bold.woff2') format('woff2');
    font-weight: 700;
  }
  Then change --font to: 'Google Sans', 'DM Sans', sans-serif
  ══════════════════════════════════════════════════════
*/

/* ── Tokens ── */
:root {
  --blue:        #335CFF;
  --blue-hover:  #2448E0;
  --blue-light:  #EEF2FF;
  --blue-mid:    #C7D2FF;

  --bg:          #F5F7FA;
  --surface:     #FFFFFF;
  --border:      #E5E9F2;
  --border-strong: #CDD4E0;

  --text-primary:   #0D1526;
  --text-secondary: #5A6478;
  --text-muted:     #9AA3B5;

  --success:     #12A150;
  --success-bg:  #EDFAF3;
  --warning:     #E65C00;
  --warning-bg:  #FFF4E6;
  --danger:      #DC2626;
  --danger-bg:   #FEE2E2;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(13,21,38,.07), 0 1px 2px rgba(13,21,38,.04);
  --shadow-md: 0 4px 16px rgba(13,21,38,.09), 0 1px 4px rgba(13,21,38,.04);

  --font: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  
  display: flex;

  width: 100%;
  height: var(--nav-h);

  align-items: center;
  
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-content {
  display: flex;
  position: relative;

  width: 100%;
  max-width: 1200px;
  height: 100%;

  justify-content: space-between;
  align-items: center;

  margin: 0 auto;
  padding: 0px 48px;
}
.navbar-logo { cursor: pointer; }
.navbar-logo img { height: auto; width: 155px; display: block; }

.navbar-right { display: flex; align-items: center; gap: 10px; }

.lang-pill {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-opt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--text-muted);
  background: none; border: none;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.lang-opt:hover { color: var(--text-primary); }
.lang-opt.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-icon-btn:hover { background: var(--bg); color: var(--text-primary); }
.nav-icon-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER
══════════════════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 80px;
}
.form-box {
  width: 100%;
  max-width: 500px;
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}

/* ══════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-label .req { color: var(--danger); }

.form-input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51,92,255,.12);
}
.form-input:disabled {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.form-link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  display: inline-block;
  margin-top: 6px;
  transition: color 0.15s;
}
.form-link:hover { color: var(--blue-hover); text-decoration: underline; }

.form-warning {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: #92400E;
  line-height: 1.55;
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.form-warning svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--warning); }

/* ── Buttons ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: var(--font);
  letter-spacing: 0.1px;
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(51,92,255,.35);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.checkbox-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrap input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.checkbox-label { font-size: 14px; color: var(--text-secondary); user-select: none; }
.forgot-link { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.forgot-link:hover { color: var(--blue); }

.form-bottom-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 18px;
}
.form-bottom-note a { color: var(--blue); font-weight: 500; }
.form-bottom-note a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer { background: #0D1526; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 48px 40px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 60px;
  align-items: start;
}

/* Brand column */
.footer-logo { display: flex; align-items: center; margin-bottom: 20px; cursor: pointer; }
.footer-logo img { height: auto; width: 155px; display: block; }

.footer-docs { display: flex; flex-direction: column; gap: 10px; }
.footer-doc-link {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-doc-link:hover { color: #fff; }

/* Contact column — UzCloud style */
.footer-contact-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .15s;
  line-height: normal;
}
.footer-contact-item:hover { color: rgba(255,255,255,.9); }
.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .6;
}
.footer-contact-icon svg { width: 100%; height: 100%; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  .main { padding: 36px 16px 60px; }
  .footer-inner { grid-template-columns: 1fr; padding: 36px 20px 28px; gap: 28px; }
  .footer-bottom-inner { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
}

