/**
 * Login page v2 (email + social icon row, or social-only full buttons).
 * Legacy layout: new_scicloud.legacy.css + loginuserpass.legacy.tpl.php
 */

.opensocial-login-v2.scilogin-inn {
    min-width: 0;
    width: 100%;
    max-width: 520px;
    padding: 0;
    overflow: hidden;
}

.opensocial-login-v2 .signin_box {
    width: 100%;
    min-height: auto;
    float: none;
    display: block;
    border-right: none;
    padding: 40px 46px 28px;
    box-sizing: border-box;
}

.opensocial-login-v2 .mylogo,
.opensocial-login-v2 .mylogo img {
    display: block;
    margin: 12px auto 40px;
    text-align: center;
    max-height: 58px;
    width: auto;
    padding: 0;
}

.opensocial-login-v2 .signin_head {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.3;
}

.opensocial-login-v2 .os-field {
    display: block;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #d8dde6;
    margin-bottom: 10px;
    background: #fff;
}

.opensocial-login-v2 .os-field:focus,
.opensocial-login-v2 .os-field:focus-visible {
    border: 1px solid #d8dde6 !important;
    outline: none !important;
    box-shadow: none !important;
}

.opensocial-login-v2 .os-btn-login {
    display: block;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    margin: 6px 0 16px;
    background: linear-gradient(90deg, #4f7cff 0%, #7b5cff 100%);
    transition: opacity 0.2s ease;
}

.opensocial-login-v2 button,
.opensocial-login-v2 button * {
    cursor: pointer !important;
}

.opensocial-login-v2 .os-btn-login:hover {
    opacity: 0.92;
}

.opensocial-login-v2 .os-links {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 2.2;
    margin-bottom: 8px;
}

.opensocial-login-v2 .os-links a {
    color: #2f6fed;
}

.opensocial-login-v2 .os-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.opensocial-login-v2 .os-divider::before,
.opensocial-login-v2 .os-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e8ef;
}

.opensocial-login-v2 .os-divider span {
    padding: 0 12px;
}

.opensocial-login-v2 .os-social-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 14px;
    font-weight: 500;
}

.opensocial-login-v2 .os-social-icons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.opensocial-login-v2 .os-social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.opensocial-login-v2 .os-social-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.opensocial-login-v2 .os-social-icon-btn .fa {
    color: #fff;
}

.opensocial-login-v2 .os-social-icon-btn .fa-google,
.opensocial-login-v2 .os-social-icon-btn .fa-windows {
    font-size: 22px;
}

.opensocial-login-v2 .os-provider-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.opensocial-login-v2 .os-provider-icon--okta {
    background-image: url(images/okta-white.svg);
}

.opensocial-login-v2 .os-provider-icon--facebook {
    background-image: url(images/facebook-white.svg);
}

.opensocial-login-v2 .os-provider-icon--twitter {
    background-image: url(images/twitter-white.svg);
}

.opensocial-login-v2 .os-provider-icon--google {
    background-image: url(images/google.svg);
}

.opensocial-login-v2 .os-provider-icon--azure {
    background-image: url(images/azure.svg);
}

.opensocial-login-v2 .os-social-google { background: #dd4b39; }
.opensocial-login-v2 .os-social-linkedin { background: #007bb6; }
.opensocial-login-v2 .os-social-facebook { background: #3b5998; }
.opensocial-login-v2 .os-social-github { background: #444444; }
.opensocial-login-v2 .os-social-twitter { background: #55acee; }
.opensocial-login-v2 .os-social-azure { background: #0078d4; }
.opensocial-login-v2 .os-social-okta { background: #007dc1; }
.opensocial-login-v2 .os-social-opensocial { background: #5c6bc0; }

.opensocial-login-v2 .os-social-full-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.opensocial-login-v2 .os-social-with-email {
    margin-top: 4px;
    align-items: center;
}

.opensocial-login-v2 .os-social-with-email .os-social-full-btn {
    width: 50%;
    min-width: 200px;
    max-width: 100%;
    min-height: 44px;
    line-height: 44px;
    margin-bottom: 0;
}

/* Social-only: branded full-width buttons (bootstrap-social style) */
.opensocial-login-v2 .os-social-full-btn {
    position: relative;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 16px 0 52px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 48px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.opensocial-login-v2 .os-social-full-btn:hover {
    opacity: 0.92;
}

.opensocial-login-v2 .os-social-full-btn__icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.opensocial-login-v2 .os-social-full-btn__icon .fa {
    color: #fff;
    font-size: 1.35em;
    line-height: 1;
}

.opensocial-login-v2 .os-social-full-btn__icon .os-provider-icon {
    width: 20px;
    height: 20px;
}

.opensocial-login-v2 .os-social-full-btn--google {
    background-color: #dd4b39;
}

.opensocial-login-v2 .os-social-full-btn--google .os-social-full-btn__icon {
    background: #fff;
}

.opensocial-login-v2 .os-social-full-btn--linkedin {
    background-color: #007bb6;
}

.opensocial-login-v2 .os-social-full-btn--facebook {
    background-color: #3b5998;
}

.opensocial-login-v2 .os-social-full-btn--github {
    background-color: #444444;
}

.opensocial-login-v2 .os-social-full-btn--twitter {
    background-color: #55acee;
}

.opensocial-login-v2 .os-social-full-btn--azure {
    background-color: #0078d4;
}

.opensocial-login-v2 .os-social-full-btn--okta {
    background-color: #007dc1;
}

.opensocial-login-v2 .os-social-full-btn--opensocial {
    background-color: #5c6bc0;
}

.opensocial-login-v2 .os-social-full-btn--google:hover { background-color: #c23321; }
.opensocial-login-v2 .os-social-full-btn--linkedin:hover { background-color: #005983; }
.opensocial-login-v2 .os-social-full-btn--facebook:hover { background-color: #2d4373; }
.opensocial-login-v2 .os-social-full-btn--github:hover { background-color: #2b2b2b; }
.opensocial-login-v2 .os-social-full-btn--twitter:hover { background-color: #2795e9; }
.opensocial-login-v2 .os-social-full-btn--azure:hover { background-color: #006cbd; }
.opensocial-login-v2 .os-social-full-btn--okta:hover { background-color: #006ba1; }
.opensocial-login-v2 .os-social-full-btn--opensocial:hover { background-color: #4a5ab5; }

.opensocial-login-v2 .os-footer-legal {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 24px;
    padding-top: 12px;
    /* border-top: 1px solid #eef1f5; */
}

.opensocial-login-v2 .os-footer-legal a {
    color: #2f6fed;
}

.opensocial-login-v2 .need_help {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 12px;
}

.opensocial-login-v2 .ralert {
    font-weight: 500;
    color: #b55858;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.opensocial-login-v2 .ribon {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

@media (max-width: 480px) {
    .opensocial-login-v2.scilogin-inn {
        max-width: calc(100% - 24px);
    }

    .opensocial-login-v2 .signin_box {
        padding: 32px 20px 24px;
    }
}
