/* Main Styles */
.my-auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.my-auth-form-wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffddfe;
}

.my-auth-form-wrapper h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Form Styles */
.my-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffddfe;
    box-shadow: 0 0 0 3px rgba(255, 221, 254, 0.3);
}

.form-group small {
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

/* Button Styles */
.my-auth-btn {
    background: linear-gradient(135deg, #ffddfe, #ffcafe);
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.my-auth-btn:hover {
    background: linear-gradient(135deg, #ffcafe, #ffb8fe);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 221, 254, 0.4);
}

.my-auth-btn:active {
    transform: translateY(0);
}

/* Message Styles */
.message-container {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* OTP Specific Styles */
.otp-instruction {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

#otp_code {
    text-align: center;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .my-auth-btn {
    flex: 1;
}

.my-auth-btn.secondary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
}

.my-auth-btn.secondary:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

/* OTP Input Focus */
#otp_code:focus {
    letter-spacing: 2px;
    border-color: #ffddfe;
    box-shadow: 0 0 0 3px rgba(255, 221, 254, 0.3);
}

/* Logout Link Styles */
.my-auth-logout-item {
    margin-left: auto !important;
}

.my-auth-logout-link {
    color: #ff6b6b !important;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #ff6b6b;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.my-auth-logout-link:hover {
    background-color: #ff6b6b;
    color: white !important;
    text-decoration: none;
}

/* Profile Actions Styles */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.profile-actions .my-auth-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

/* Edit Profile Form Styles */
#edit-email {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsive Profile */
@media (max-width: 480px) {
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .my-auth-btn {
        flex: none;
    }
}

.user-info {
    background: #ffe4fb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.user-info p {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.user-info p:last-child {
    border-bottom: none;
}




/* Responsive for logout link */
@media (max-width: 768px) {
    .my-auth-logout-item {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .my-auth-logout-link {
        display: block;
        text-align: center;
    }
}

/* User Welcome Message (Optional) */
.my-auth-user-welcome {
    display: inline-block;
    margin-right: 15px;
    color: #333;
    font-weight: 500;
}






/* Responsive for OTP */
@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }
    
    #otp_code {
        font-size: 1.1rem;
        letter-spacing: 0.3rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .my-auth-container {
        margin: 1rem auto;
    }
    
    .my-auth-form-wrapper {
        padding: 1.5rem;
    }
    
    .my-auth-form-wrapper h2 {
        font-size: 1.5rem;
    }
}

/* Loading State */
.my-auth-btn.loading {
    position: relative;
    color: transparent;
}

.my-auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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