:root {
    --primary-color: #007aff;
    --primary-hover: #0056b3;
    --bg-color: #f2f2f7;
    --card-bg: #ffffff;
    --text-color: #1c1c1e;
    --text-secondary: #8e8e93;
    --error-color: #ff3b30;
    --border-radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url("/static/img/bg.jpg");
    background-size: cover;
    background-position: center;
}

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}
.icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    -webkit-box-shadow: 6px 6px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 6px 6px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 6px 6px 8px 0px rgba(34, 60, 80, 0.2);
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}
.form-input {
    width: 100%;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    /*width: 300px;*/
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
}
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Скрыт по умолчанию */
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f7ff;
}

.suggestion-title {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.suggestion-subtitle {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    background: #ffffff;
}

input[type="text"].error {
    border-color: var(--error-color);
    animation: shake 0.3s ease-in-out;
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: none;
    text-align: left;
}

button {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-appearance: none;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #c7c7cc;
    cursor: not-allowed;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-height: 500px) {
    .container {
        padding: 20px 16px;
    }
    h1 {
        font-size: 20px;
    }
    p {
        font-size: 14px;
        margin-bottom: 16px;
    }
}
