/* Account Popup Styles */
.wtp-account-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wtp-account-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wtp-account-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.wtp-account-popup-content {
    background: #fff;
    width: 450px; /* Fixed width */
    max-width: 90%; /* Mobile responsive */
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    margin: 0 auto; /* Center horizontally if flex fails */
}

.wtp-account-popup-overlay.active .wtp-account-popup-content {
    transform: translateY(0);
}

.wtp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.wtp-popup-header {
    text-align: left;
    margin-bottom: 25px;
}

.wtp-popup-header h2 {
    font-size: 28px;
    margin: 0 0 5px;
    color: #111;
    font-weight: 600;
}

.wtp-popup-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Form Styles */
.wtp-form-group {
    margin-bottom: 20px;
}

.wtp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.wtp-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wtp-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.wtp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wtp-forgot-password {
    color: #333;
    text-decoration: underline;
}

.wtp-btn-login {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.wtp-btn-login:hover {
    background: #333;
}

.wtp-popup-footer {
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
    color: #666;
}

.wtp-popup-footer a {
    color: #111;
    text-decoration: underline;
    font-weight: 600;
}

/* Loader */
.wtp-btn-login.loading .wtp-btn-text {
    opacity: 0;
}

.wtp-btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wtp-spin 0.8s linear infinite;
}

.wtp-btn-login.loading .wtp-btn-loader {
    display: block;
}

@keyframes wtp-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.wtp-login-message {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}
.wtp-login-message.error {
    color: #d63031;
}
.wtp-login-message.success {
    color: #00b894;
}
