.group-page {
    min-height: calc(100vh - 58px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}


.group-auth-card {
    width: 100%;
    max-width: 460px;

    padding: 36px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15);
}



.group-auth-header {
    text-align: center;

    margin-bottom: 30px;
}


.group-icon {
    width: 56px;
    height: 56px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--surface-2);

    font-size: 1.6rem;
}


.group-auth-header h1 {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 1.8rem;
}


.group-auth-header p {
    margin: 0;

    color: var(--muted);

    line-height: 1.5;
}



.group-form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.group-form label {
    color: var(--text);

    font-size: 0.9rem;

    font-weight: 600;
}


.group-form input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: var(--surface-2);

    color: var(--text);

    font-family: inherit;

    font-size: 1rem;

    outline: none;
}


.group-form input:focus {
    border-color: var(--primary);
}


.group-form input::placeholder {
    color: var(--muted);
}



.group-submit-btn {
    width: 100%;
    height: 48px;

    margin-top: 8px;

    border: none;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 0.95rem;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}


.group-submit-btn:hover {
    background: var(--primary-dark);
}




.group-result {
    display: none;

    margin-top: 18px;

    padding: 16px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: var(--surface-2);

    text-align: center;
}


.group-result h3 {
    margin-bottom: 8px;

    color: var(--text);
}


.group-result p {
    margin-bottom: 8px;

    color: var(--muted);

    line-height: 1.5;
}


.group-result h2 {
    margin: 12px 0;

    color: var(--primary);

    font-size: 1.8rem;

    letter-spacing: 4px;
}



.group-switch {
    margin-top: 26px;

    padding-top: 22px;

    border-top:
        1px solid var(--border);

    text-align: center;
}


.group-switch p {
    margin: 0 0 10px;

    color: var(--muted);

    font-size: 0.9rem;
}


.group-switch-btn {
    padding: 0;

    border: none;

    background: transparent;

    color: var(--primary);

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 600;

    cursor: pointer;
}


.group-switch-btn:hover {
    text-decoration: underline;
}



.group-form,
.group-auth-header h1,
.group-auth-header p,
.group-switch p,
.group-switch-btn {
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.group-form.form-changing,
.group-auth-header.changing,
.group-switch.changing {
    opacity: 0;

    transform: translateY(8px);
}

@media (max-width: 600px) {

    .group-page {
        padding: 25px 16px;
    }

    .group-auth-card {
        padding: 28px 22px;
    }

    .group-auth-header h1 {
        font-size: 1.6rem;
    }

}