/**
 * AppointmentKeeper Signup Popup Styles
 */

/* Popup Overlay */
.ak-signup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.ak-signup-overlay.active {
    display: flex;
}

/* Popup Container */
.ak-signup-popup {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: ak-popup-slide-in 0.3s ease;
}

@keyframes ak-popup-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.ak-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.ak-popup-close:hover {
    color: #333;
}

/* Header */
.ak-signup-header {
    text-align: center;
    margin-bottom: 30px;
}

.ak-signup-header h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    color: #1e3a5f;
    font-weight: 700;
}

.ak-signup-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Social Login Buttons */
.ak-social-buttons {
    margin-bottom: 25px;
}

.ak-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.ak-social-btn:last-child {
    margin-bottom: 0;
}

.ak-social-btn svg {
    width: 20px;
    height: 20px;
}

.ak-google-btn {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    color: #333;
}

.ak-google-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

/* Divider */
.ak-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.ak-divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.ak-divider-text {
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

/* Form Styles */
.ak-signup-form {
    margin-bottom: 20px;
}

.ak-form-group {
    margin-bottom: 18px;
}

.ak-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ak-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ak-form-group input:focus {
    outline: none;
    border-color: #1e3a5f;
}

.ak-form-group input::placeholder {
    color: #aaa;
}

/* Submit Button */
.ak-submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ak-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.4);
}

.ak-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Links */
.ak-signup-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.ak-signup-footer a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
}

.ak-signup-footer a:hover {
    text-decoration: underline;
}

/* Login Form Toggle */
.ak-form-toggle {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Error Message */
.ak-error-message {
    background: #fee;
    color: #c00;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.ak-error-message.active {
    display: block;
}

/* Success Message */
.ak-success-message {
    background: #efe;
    color: #060;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.ak-success-message.active {
    display: block;
}

/* Loading Spinner */
.ak-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ak-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes ak-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Signup Trigger Button */
.ak-signup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ak-signup-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .ak-signup-popup {
        padding: 30px 25px;
        margin: 15px;
    }
    
    .ak-signup-header h2 {
        font-size: 22px;
    }
    
    .ak-social-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .ak-form-group input {
        padding: 12px 15px;
    }
    
    .ak-submit-btn {
        padding: 14px 18px;
    }
}

/* Verification Sent Screen */
.ak-verification-sent {
    text-align: center;
    padding: 20px 0;
}

.ak-verification-sent svg {
    width: 80px;
    height: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.ak-verification-sent h3 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
    font-size: 22px;
}

.ak-verification-sent p {
    color: #666;
    margin: 0 0 20px 0;
}

.ak-resend-link {
    color: #1e3a5f;
    cursor: pointer;
    text-decoration: underline;
}
