.hidden {
    display: none !important;
}

#auth-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.login-form h2 {
    text-align: center;
    margin: 0 0 10px;
}

.login-form input,
.login-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    padding: 10px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form p {
    text-align: center;
    margin-top: 10px;
}

.login-form a {
    color: #4caf50;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.auth-links {
    margin-top: 0 !important;
    font-size: 14px;
}

.auth-help {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.auth-msg {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.auth-msg-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-msg-error {
    background: #ffebee;
    color: #b40b2c;
}

.auth-back-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #6c4e09;
    text-decoration: none;
    font-weight: 700;
}

.auth-back-link:hover {
    text-decoration: underline;
}

.auth-panel-help {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.auth-inline-msg {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

.auth-inline-msg.is-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-inline-msg.is-error {
    background: #ffebee;
    color: #b40b2c;
}

.auth-panel-link {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-legal {
    margin-top: 4px !important;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.auth-legal a {
    color: #4caf50;
    font-weight: 600;
}

.auth-age-hint {
    margin: -4px 0 0 !important;
    font-size: 12px;
    color: #666;
    text-align: left !important;
}
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    text-align: left;
    cursor: pointer;
}

.auth-agree input {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-agree a {
    color: #4caf50;
    font-weight: 600;
}

.auth-legal-panel h3 {
    margin: 12px 0 6px;
    font-size: 0.95rem;
    color: #33691e;
}

.auth-legal-scroll {
    max-height: 42vh;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #333;
    text-align: left;
}

.auth-legal-scroll::-webkit-scrollbar {
    display: none;
}

.auth-legal-scroll p,
.auth-legal-scroll li {
    margin: 0 0 8px;
}

.auth-legal-scroll ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.saved-accounts {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e4e4e4;
}

.saved-accounts-label {
    margin: 0 0 8px !important;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-align: left !important;
}

.saved-accounts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.login-form .saved-account-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 76px;
    padding: 6px 4px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #222;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.login-form .saved-account-btn img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8f5e9;
    border: 1px solid #d8d8d8;
}

.login-form .saved-account-btn span {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 12px;
    color: #333;
}