.popup-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 24px;
    width: 556px;
    background: #F9FAFB;
    border: 1px solid #EAECF0;
    box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
    border-radius: 16px;
    z-index: 50;
}

#forgot-password-popup:not(.hidden),
#verify-otp-popup:not(.hidden),
#cancel-subscription-modal:not(.hidden),
#success-modal:not(.hidden),
#validation-error-modal:not(.hidden),
#info-modal:not(.hidden) {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 50;
    background: rgba(0, 0, 0, 0.5);
}


.popup-logo {
    width: 64px;
    height: 64px;
}

.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.popup-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    color: #344054;
    margin: 0px;
}

.popup-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #475467;
    margin: 0px;
}

.popup-form {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.input-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
}

.input-field {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #667085;
}

.button-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    background: #111111;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

.popup-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.popup-footer span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #344054;
}

.button-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #111111;
    background: none;
    border: none;
    cursor: pointer;
}

.input-field.input-invalid {
    border-color: #F04438;
    box-shadow: 0 0 0 2px rgba(240, 68, 56, 0.2);
}

.button-primary:disabled {
    background-color: #D0D5DD;
    cursor: not-allowed;
}

.otp-container {
    display: flex;
    gap: 12px;
}

.otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    padding: 0;
}

@media (max-width: 600px) {
    .popup-container {
        width: 90vw;
        padding: 20px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-subtitle {
        font-size: 14px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-input {
        flex: 1;
        max-width: 45px;
        min-width: 35px;
        height: 45px;
        font-size: 16px;
    }
}

.password-display-field {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #111111;
    cursor: text;
}

#new-password-display:not(.hidden) {
    display: flex;
}

.link-button {
    background: none;
    border: none;
    color: #111111;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.link-button:hover {
    text-decoration: underline;
}

.otp-input.otp-error {
    border-color: #F04438;
    box-shadow: 0 0 0 2px rgba(240, 68, 56, 0.2);
}

#cancel-subscription-modal .popup-header,
#success-modal .popup-header {
    gap: 0;
}

#cancel-subscription-modal .popup-title,
#success-modal .popup-title {
    margin-top: 16px;
    margin-bottom: 8px;
}

#cancel-subscription-modal .popup-subtitle,
#success-modal .popup-subtitle {
    margin-top: 0;
}