.login-container,
.register-container,
.fr-social-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}

.fr-social-buttons {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.login-box .fr-social-button,
.register-box .fr-social-button,
.fr-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #cbd2d0;
    border-radius: 4px;
    background: #fff;
    color: #252c2a;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    letter-spacing: 0;
    transition: background-color 0.15s, border-color 0.15s;
}

.fr-social-button .fa {
    width: 22px;
    flex: 0 0 22px;
    font-size: 20px;
    text-align: center;
}

.fr-social-google .fa {
    color: #4285f4;
}

.fr-social-microsoft .fa {
    color: #626b67;
}

.login-box .fr-social-apple,
.register-box .fr-social-apple {
    border-color: #171b19;
    background: #171b19;
    color: #fff;
}

.login-box .fr-social-button:hover,
.register-box .fr-social-button:hover {
    border-color: #8d9c96;
    background: #f2f5f3;
    color: #252c2a;
    text-decoration: none;
}

.login-box .fr-social-apple:hover,
.register-box .fr-social-apple:hover {
    background: #303633;
    color: #fff;
}

.login-box .fr-social-button:disabled,
.register-box .fr-social-button:disabled {
    flex-wrap: wrap;
    row-gap: 4px;
    cursor: not-allowed;
    opacity: 0.75;
}

.fr-social-pending {
    flex-basis: 100%;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
}

.fr-social-button:focus-visible,
.fr-social-panel input:focus-visible,
.fr-social-panel button:focus-visible,
.fr-social-cancel:focus-visible {
    outline: 3px solid #359980;
    outline-offset: 3px;
}

.fr-social-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #65706b;
    font-size: 13px;
}

.fr-social-divider::before,
.fr-social-divider::after {
    content: "";
    height: 1px;
    background: #dce2de;
}

.fr-social-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dce2de;
    text-align: left;
}

.fr-social-identity > .fa {
    width: 24px;
    flex: 0 0 24px;
    font-size: 24px;
    text-align: center;
}

.fr-social-identity > span {
    flex: 1;
    min-width: 0;
}

.fr-social-identity strong,
.fr-social-identity small {
    display: block;
    overflow-wrap: anywhere;
}

.fr-social-identity span small {
    font-size: 12px;
    line-height: 1.5;
}

.fr-social-status {
    color: #20574a;
    font-size: 12px;
    font-weight: 600;
}

.fr-social-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: #f5f5f5;
}

.fr-social-panel {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fr-social-panel .logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
}

.fr-social-panel h2 {
    margin: 0 0 24px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0;
}

.fr-social-panel .form-group {
    margin-bottom: 20px;
}

.fr-social-panel input {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background: transparent;
    color: #252c2a;
    font-size: 16px;
    box-sizing: border-box;
}

.fr-social-panel .fr-social-submit {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: #20574a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.fr-social-panel .fr-social-submit:hover {
    background: #2b7a68;
}

.register-box .fr-social-cancel,
.fr-social-panel .fr-social-cancel {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #20574a;
    font-size: 14px;
}

.register-box .fr-social-cancel:hover,
.fr-social-panel .fr-social-cancel:hover {
    background: #f2f5f3;
}

@media (max-width: 480px) {
    .login-container,
    .register-container,
    .fr-social-shell {
        padding: 16px 12px;
    }

    .login-box,
    .register-box,
    .fr-social-panel {
        padding: 24px 18px;
    }

    .fr-social-identity > span {
        flex-basis: calc(100% - 36px);
    }

    .fr-social-identity > .fr-social-status {
        flex-basis: 100%;
        padding-left: 36px;
        box-sizing: border-box;
    }
}