/* Auth pages (login/registration) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 620px;
    width: 100%;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer p {
    color: var(--text-gray);
    margin: 0.5rem 0;
}

/* Autocomplete dropdown */
.autocomplete {
    position: relative;
    overflow: visible;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    max-height: 220px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.autocomplete-list.visible {
    display: block;
}

.autocomplete-item {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    color: var(--text-dark);
}

.autocomplete-item:hover {
    background: #f3f4f6;
}

/* Password visibility toggle */
.password-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.password-input {
    position: relative;
    width: 100%;
}

.password-input input {
    padding-right: 38px;
    width: 100%;
}

.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.toggle-password:hover {
    color: var(--accent-blue);
}

/* Input hint */
.input-hint {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    color: var(--text-gray);
}

.input-hint.warning {
    color: var(--error);
}
