/* Signup Form Specific Styles */
.error-message, .success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background-color: #fee;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.success-message {
    background-color: #f0fff4;
    color: #2f855a;
    border: 1px solid #c6f6d5;
}

.email-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f0fff4;
    color: #2f855a;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-icon {
    font-size: 18px;
    font-weight: bold;
}

.verify-otp {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.verify-otp .spageer-form-group {
    flex: 1;
}

.spager-log-button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    height: fit-content;
}

.spager-log-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.spager-log-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Verify text styling */
.verify-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    /* align-self: center; */
    margin-top: 8px;
}

.verify-text:hover {
    color: #c82333;
    text-decoration: underline;
}

.verify-text:disabled {
    color: #6c757d;
    cursor: not-allowed;
    text-decoration: none;
}

.spageer-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.spageer-signin-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Password visibility toggle */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #495057;
}

/* Password validation message */
.password-validation {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.password-validation.error {
    color: #dc3545;
}

.password-validation.success {
    color: #28a745;
}

/* Password strength indicator */
.password-strength {
    margin-top: 4px;
    font-size: 12px;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}

/* OTP Modal Styles */
.otp-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    margin: auto;
}

.otp-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.otp-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.otp-close:hover {
    color: #000;
}

.otp-modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.otp-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.otp-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.otp-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.otp-input.filled {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.otp-message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}

.otp-message.error {
    color: #c53030;
}

.otp-message.success {
    color: #2f855a;
}

/* Login form specific styles */
.spageer-forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.spageer-forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.spageer-forgot-password a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* User greeting and dropdown styles */
.user-welcome {
    position: relative;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.greeting-text {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dropdown-toggle:hover {
    background-color: #dee2e6;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.logout-link {
    color: #dc3545;
}

.logout-link:hover {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .verify-otp {
        flex-direction: column;
        gap: 16px;
    }
    
    .spager-log-button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .otp-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .otp-inputs {
        gap: 8px;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* User greeting responsive */
    .greeting-text {
        font-size: 13px;
    }
    
    .user-greeting {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .dropdown-toggle {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-menu {
        min-width: 130px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .otp-inputs {
        gap: 6px;
    }
    
    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* User greeting mobile */
    .greeting-text {
        font-size: 12px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-greeting {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .dropdown-toggle {
        width: 24px;
        height: 24px;
    }
    
    .dropdown-menu {
        min-width: 120px;
        right: -15px;
    }
}
