/* Sign In Modal Styles */
.petos-signin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.petos-signin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.petos-signin-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 60px 64px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.petos-signin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.petos-signin-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.petos-signin-header {
    text-align: center;
    margin-bottom: 30px;
}

.petos-signin-title {
    font-size: 32px;
    font-weight: 700;
    color: #FC8034;
    margin: 0 0 8px 0;
    font-family: 'Space Grotesk', sans-serif !important;
}

.petos-signin-subtitle {
    font-size: 14px;
    color: #6c7a80;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif !important;
}

.petos-signin-info-banner {
    background: rgba(235, 165, 45, 0.1);
    border: 1px solid #EBA52D;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif !important;
    margin-left: 25px;
    margin-right: 25px;
}

.petos-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(235, 165, 45, 0.15);
    padding: 3px;
}

.petos-info-text {
    color: #EBA52D;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.42px;
    word-wrap: break-word;
    line-height: 1.4;
    flex: 1;
}

/* Verify button styles */
.verify-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #828991;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600;
    text-decoration: underline;
    cursor: default;
    padding: 4px 0;
    white-space: nowrap;
    z-index: 10;
}

.verify-button.active {
    color: #FC8034;
    cursor: pointer;
}

/* OTP sent GIF icon */
.otp-sent-gif {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    display: none;
    z-index: 10;
}

/* Loader spinner */
.otp-loader {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FC8034;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Clear button (cross icon) */
.clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #EC4F2E;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 11;
    transition: background 0.2s ease, transform 0.2s ease;
}

.clear-button::before {
    content: '×';
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.clear-button:hover {
    background: #d43f1e;
    transform: translateY(-50%) scale(1.1);
}

.petos-signin-login-button {
    width: 170px;
    height: 48px;
    padding: 0;
    background: #D5D5D8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.petos-signin-login-button:enabled,
.petos-signin-login-button.enabled {
    background: #212121;
    cursor: pointer;
    opacity: 1;
}

.petos-signin-login-button:hover:enabled,
.petos-signin-login-button.enabled:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Error state styles */
.petos-phone-input.error {
    border-color: #FC8034;
    background: #FFF5F0;
}

.petos-signin-error-message {
    margin-top: 8px;
    color: #EC4F2E;
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 400;
    line-height: 1.4;
}

.petos-signin-error-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.petos-browse-button {
    padding: 12px 24px;
    background: white;
    color: #131526;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.petos-browse-button:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.petos-try-another-button {
    padding: 12px 24px;
    background: #212121;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.petos-try-another-button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 575.98px) {
    .petos-signin-modal-content {
        padding: 30px 24px;
        width: 95%;
        max-width: none;
    }

    .petos-signin-title {
        font-size: 28px;
    }

    .petos-signin-subtitle {
        font-size: 13px;
    }

    .petos-signin-login-button {
        padding: 16px;
        font-size: 16px;
    }

    .petos-signin-error-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .petos-browse-button,
    .petos-try-another-button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
}

