.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #020617, #0f172a);
}

.auth-card {
    width: 420px;
    padding: 35px;
    background: linear-gradient(180deg, #020617, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    color: white;
}

.auth-card h1 {
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.success-box h2 {
    font-size: 28px;
    color: #A3E635;
}

.success-box p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

input.error {
    border: 2px solid #ff4d4d;
}

.password-match {
    color: #22c55e;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.password-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.input-success {
    border: 2px solid #22c55e !important;
}

.input-error {
    border: 2px solid #ef4444 !important;
}

.auth-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-card label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.auth-card input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.9);
    color: white;
}

.auth-card button {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #A3E635;
    color: #020617;
    font-weight: 700;
    cursor: pointer;
}

.success-message {
    background: rgba(163, 230, 53, 0.12);
    border: 1px solid rgba(163, 230, 53, 0.35);
    color: #A3E635;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

.auth-card a {
    color: #A3E635;
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

.success-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.success-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.success-card i {
    font-size: 70px;
    color: #22c55e;
    margin-bottom: 20px;
}

.success-card h2 {
    color: white;
    margin-bottom: 15px;
}

.success-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-home {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-home:hover {
    background: #1d4ed8;
}

.group-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
}

.group-box-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-choice {
    gap: 10px;
    margin-bottom: 0;
}

.group-choice label {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
}

.group-choice input[type="radio"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    accent-color: #38bdf8;
}

.group-choice label:hover {
    background: rgba(56, 189, 248, 0.12);
}

.invite-code-wrapper {
    display: flex;
    gap: 10px;
}

.invite-code-wrapper input {
    flex: 1;
}

#generate-code-btn {
    margin-top: 0;
    padding: 0 18px;
    white-space: nowrap;
    background: #38bdf8;
    color: #020617;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

#generate-code-btn:hover {
    background: #0ea5e9;
}

.maintenance-message {
    padding: 14px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #fde68a;
    line-height: 1.5;
    font-size: 14px;
    text-align: center;
}

.disabled-btn {
    opacity: 0.55;
    cursor: not-allowed !important;
}