.ph-login-ui {
    background:
        radial-gradient(1200px 480px at 50% -120px, #e6eeff 0%, rgba(230, 238, 255, 0) 70%),
        linear-gradient(180deg, #f4f6fb 0%, #eef1f7 100%);
    padding: 134px 16px 92px;
    min-height: 86vh;
    font-family: "Inter", "Segoe UI", sans-serif;
}

.ph-login-ui *,
.ph-login-ui *::before,
.ph-login-ui *::after {
    box-sizing: border-box;
}

.ph-login-ui__container {
    max-width: 584px;
    margin: 0 auto;
    position: relative;
}

.ph-login-ui__intro {
    text-align: center;
    margin: 0 auto 18px;
    max-width: 540px;
}

.ph-login-ui__intro h1 {
    margin: 0;
    color: #233754;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ph-login-ui__intro p {
    margin: 8px 0 0;
    color: #73829a;
    font-size: 14px;
    line-height: 1.55;
}

.ph-login-ui__switch {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ph-login-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dde4ef;
    box-shadow: 0 14px 32px rgba(30, 50, 86, 0.08);
    padding: 22px 34px 30px;
}

.ph-login-card__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 2px solid #e3e8f2;
    margin-bottom: 18px;
}

.ph-login-card__tab {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    color: #8b97ac;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

#ph-auth-tab-login:checked ~ .ph-login-card .ph-login-card__tab[for="ph-auth-tab-login"],
#ph-auth-tab-register:checked ~ .ph-login-card .ph-login-card__tab[for="ph-auth-tab-register"] {
    color: #1f4f9b;
    border-bottom-color: #4d7bd5;
}

.ph-login-card__panel {
    display: none;
}

#ph-auth-tab-login:checked ~ .ph-login-card .ph-login-card__panel--login,
#ph-auth-tab-register:checked ~ .ph-login-card .ph-login-card__panel--register {
    display: block;
}

.ph-auth-form {
    display: grid;
    gap: 10px;
}

.ph-auth-form label {
    color: #3b4960;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.ph-auth-form input {
    width: 100%;
    height: 52px;
    border: 1px solid #c8d2e3;
    border-radius: 12px;
    background: #ffffff;
    color: #304053;
    font-size: 14px;
    padding: 0 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ph-auth-form input::placeholder {
    color: #a3afc3;
}

.ph-auth-form input:focus {
    border-color: #5681cf;
    box-shadow: 0 0 0 3px rgba(86, 129, 207, 0.15);
}

.ph-auth-form input:required:invalid:not(:placeholder-shown) {
    border-color: #d97b8a;
    box-shadow: 0 0 0 3px rgba(217, 123, 138, 0.12);
}

.ph-auth-form input:required:valid {
    border-color: #74b58f;
}

.ph-auth-input-wrap {
    position: relative;
}

.ph-auth-input-wrap input {
    padding-right: 44px;
}

.ph-auth-input-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    padding: 4px;
    background: transparent;
    color: #909db2;
    line-height: 1;
    cursor: pointer;
}

.ph-auth-row {
    margin-top: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ph-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4d5d78;
    font-size: 13.5px;
    font-weight: 500;
}

.ph-auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 3px;
}

.ph-auth-row a,
.ph-auth-check a,
.ph-auth-foot a,
.ph-auth-tab-link {
    color: #2f66ba;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.ph-auth-row a:hover,
.ph-auth-check a:hover,
.ph-auth-foot a:hover,
.ph-auth-tab-link:hover {
    text-decoration: underline;
}

.ph-auth-submit {
    margin-top: 4px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #4677c2 0%, #355fa7 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.ph-auth-submit:hover {
    filter: brightness(0.95);
}

.ph-auth-divider {
    margin: 6px 0 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #95a2b8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.ph-auth-divider::before,
.ph-auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #d4dbe8;
}

.ph-auth-divider span {
    white-space: nowrap;
}

.ph-auth-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ph-auth-social {
    height: 44px;
    border: 1px solid #ccd5e5;
    border-radius: 11px;
    background: #ffffff;
    color: #3f4b61;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ph-auth-social:hover {
    background: #f6f8fd;
}

.ph-auth-foot {
    margin: 8px 0 0;
    text-align: center;
    color: #6f7f99;
    font-size: 14px;
    font-weight: 500;
}

.ph-auth-help {
    margin: -4px 0 3px;
    color: #7f8ea4;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

@media (max-width: 991px) {
    .ph-login-ui {
        padding-top: 114px;
    }

    .ph-login-card__tab {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .ph-login-ui {
        padding-top: 102px;
        padding-bottom: 70px;
    }

    .ph-login-card {
        padding: 18px 16px 22px;
    }

    .ph-login-ui__intro h1 {
        font-size: 24px;
    }

    .ph-login-card__tab {
        font-size: 16px;
        height: 48px;
    }

    .ph-auth-form label {
        font-size: 15px;
    }

    .ph-auth-form input,
    .ph-auth-submit {
        height: 48px;
    }

    .ph-auth-socials {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ph-auth-row {
        flex-wrap: wrap;
    }
}
