.ipinfo-signup-modal {
    background: rgba(30, 40, 58, 0.15);
    height: 100%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ipinfo-signup-modal.hidden {
    z-index: -1;
    display: none;
}

.ipinfo-signup-modal__container {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(14, 57, 80, 0.1);
    max-width: 510px;
    width: 100%;
    padding: 48px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .ipinfo-signup-modal__container {
        padding: 24px;
        bottom: 0;
        top: unset;
    }
}

.ipinfo-signup-modal__header {
    text-align: center;
    margin-bottom: 32px;
}

.ipinfo-signup-modal__logo {
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.ipinfo-signup-modal__title {
    color: #1e283a;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.ipinfo-signup-modal__subtitle {
    color: #616875;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.ipinfo-signup-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #616875;
    height: 24px;
}

.ipinfo-signup-modal__close:hover {
    opacity: 0.7;
}

.ipinfo-signup-modal__close svg {
    width: 14px;
    height: 14px;
}

.ipinfo-signup-modal__sso-buttons {
    margin-bottom: 0;
}

.ipinfo-signup-modal__sso-buttons .btn-light {
    align-items: center;
    background: #fff;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #e1e8ed;
    color: #1e283a;
    display: flex;
    height: 48px;
    margin-bottom: 12px;
    padding: 6px 20px;
    text-align: left;
    white-space: nowrap;
    width: 100%;
    text-decoration: none;
    border-radius: 3px;
}

.ipinfo-signup-modal__sso-buttons .btn-light:hover {
    background: #f7f9fa;
}

.ipinfo-signup-modal__sso-buttons .btn-light img,
.ipinfo-signup-modal__sso-buttons .btn-light svg {
    margin-right: 10px;
    width: 21px;
    height: auto;
}

.ipinfo-signup-modal__divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #616875;
    font-size: 14px;
}

.ipinfo-signup-modal__divider::before,
.ipinfo-signup-modal__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 80px);
    height: 1px;
    background: rgba(30, 40, 58, 0.2);
}

.ipinfo-signup-modal__divider::before {
    left: 0;
}

.ipinfo-signup-modal__divider::after {
    right: 0;
}

.ipinfo-signup-modal__form {
    margin-top: 16px;
}

.ipinfo-signup-modal__form .form-group {
    margin-bottom: 0;
}

.ipinfo-signup-modal__form label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ipinfo-signup-modal__form .form-control {
    border: 1px solid #e1e8ed;
    box-shadow: none;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 3px;
}

.ipinfo-signup-modal__form .form-control:focus {
    border-color: #0095e5;
    box-shadow: none;
}

.ipinfo-signup-modal__terms {
    font-size: 14px;
    color: #616875;
    line-height: 1.5;
    margin: 16px 0;
    display: flex;
    gap: 8px;
}

.ipinfo-signup-modal__terms svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ipinfo-signup-modal__terms a {
    color: #0095e5;
    text-decoration: none;
}

.ipinfo-signup-modal__terms a:hover {
    text-decoration: underline;
}

.ipinfo-signup-modal__form .btn-success {
    width: 100%;
    height: 48px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 3px;
    background-color: #0095e5;
    color: #fff;
}

.ipinfo-signup-modal__form .btn-success:hover {
    background-color: #0082cc;
}

.ipinfo-signup-modal__form .btn-success svg {
    width: 18px;
    height: 18px;
}

.ipinfo-signup-modal__footer {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #616875;
}

.ipinfo-signup-modal__footer a {
    color: #0095e5;
    font-weight: 600;
    text-decoration: none;
}

.ipinfo-signup-modal__footer a:hover {
    text-decoration: underline;
}

.ipinfo-signup-modal__error {
    padding: 12px 16px;
    background-color: #f3d6d6;
    border: 1px solid #c43131;
    border-radius: 3px;
    color: #c43131;
    font-size: 14px;
    margin-bottom: 16px;
}

.ipinfo-signup-modal__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ipinfo-signup-modal-spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes ipinfo-signup-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

body.ipinfo-signup-modal-open {
    overflow: hidden;
}
