:root {
    --bg: #0d0e11;
    /* фон страницы */
    --tile: #1a1b20;
    /* плитка стены */
    --tile-line: #26272d;
    /* линии плитки */
    --panel: #111217;
    /* билборд внутренняя панель */
    --frame: #424349;
    /* рамка билборда */
    --accent: #8b5a2b;
    --accent-h: #a56d39;
    --err: #ff6464;
    --radius: 10px;
    --tr: .18s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, Segoe UI, Roboto, Inter, sans-serif
}

html,
body {
    min-height: 100vh
}

body {
    background: var(--bg);
    color: #e6e6ea;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}

/* ======= СЕКРЕТНЫЙ ЭКРАН ======= */
#gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    transition: opacity var(--tr);
    display: flex;
    justify-content: center;
    align-items: center;
    /* рисуем стену-плитку */
    background:
        repeating-linear-gradient(90deg, var(--tile-line) 0 2px, transparent 2px 122px),
        repeating-linear-gradient(180deg, var(--tile-line) 0 2px, transparent 2px 122px),
        var(--tile);
}

/* сам билборд */
.board {
    width: 870px;
    height: 460px;
    border: 14px solid var(--frame);
    border-radius: 6px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 0%, transparent 70%), var(--panel);
    box-shadow: 0 0 30px #000a, 0 4px 16px #000a;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* шильдик “PARKING” слева */
.logo {
    border: 4px solid #2b73c7;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: #1d3e6a;
    box-shadow: inset 0 0 8px #000d;
}

.logo svg {
    width: 60px
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px
}

/* заголовок “Парковка домена 2.0” */
h1.title {
    font-size: 46px;
    line-height: 1.1;
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #000c;
}

#inputWrap {
    position: absolute;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px
}

/* белый прямоугольник-поле */
.secret-inp {
    width: 260px;
    padding: 12px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 0 6px #0006 inset;
}

.secret-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--tr)
}

.secret-btn:hover {
    background: var(--accent-h)
}

.secret-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.secret-err {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: var(--err);
    opacity: 0;
    transition: opacity .2s
}

.lock {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #ffbf6b;
    text-align: center
}

@keyframes shake {

    10%,
    90% {
        transform: translateX(-3px)
    }

    20%,
    80% {
        transform: translateX(4px)
    }

    30%,
    50%,
    70% {
        transform: translateX(-6px)
    }

    40%,
    60% {
        transform: translateX(6px)
    }
}

/* ======= ПАНЕЛЬ ЛОГИНА ======= */
.login-container {
    background: #18191d;
    padding: 34px;
    width: 90%;
    border-radius: var(--radius);
    max-width: 400px;
    box-shadow: 0 0 12px #0008;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
    transition: opacity var(--tr)
}

.recaptcha-wrapper {
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
}

.login-container.open {
    opacity: 1;
    pointer-events: auto
}

h2 {
    font-size: 22px;
    text-align: center;
    color: #d2d2d2
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px
}

label {
    font-size: 14px;
    color: #ccc
}

input[type=text],
input[type=password] {
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #232428;
    color: #e6e6ea
}

.login-btn {
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--tr)
}

.login-btn:hover {
    background: var(--accent-h)
}

.login-btn:disabled {
    opacity: .55;
    cursor: not-allowed
}

.error-msg {
    min-height: 20px;
    text-align: center;
    color: var(--err);
    font-size: 14px
}

.board {
    flex-direction: column;
    gap: 40px;
    padding: 40px;
    display: flex;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
  flex: 1;
}

.form-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
  text-align: center;
}

.title-wrap {
  width: 100%;
  max-width: 360px;
}

.title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px #000b;
}

.form-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  justify-content: center;
}

.secret-inp {
  flex: 1;
  min-width: 0;
}

.secret-btn {
  white-space: nowrap;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.system-message {
  color: #ffc107;
  border-radius: 5px;
  font-size: 14px;
}