/* Modern Custom Styles for MuM SaaS Portal */

:root {
    --primary-color: #FF8800;
    --primary-hover: #E67700;
    --primary-light: #FFA533;
    --secondary-color: #808080;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #F5F5F5;
    --white: #ffffff;
    --text-dark: #2B2B2B;
    --text-gray: #808080;
    --text-light: #999999;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --gradient-bg: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 100%);
}

/* Enhanced Container Styles */
.auth-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 3rem 2.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 400;
}

/* Modern Form Inputs */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.95rem 1.15rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.25s ease;
    margin-bottom: 1.15rem;
    font-weight: 400;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.08);
    background: var(--white);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Modern Buttons */
button,
.button {
    padding: 0.95rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-block;
    letter-spacing: 0.3px;
    text-transform: none;
}

button:hover,
.button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.25);
}

button:active,
.button:active {
    transform: translateY(0);
}

button.alt,
.button.alt {
    background: #F5F5F5 !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--text-dark) !important;
    font-weight: 600 !important;
}

button.alt:hover,
.button.alt:hover {
    background: var(--text-dark) !important;
    color: var(--white) !important;
    border-color: var(--text-dark) !important;
    box-shadow: 0 4px 12px rgba(43, 43, 43, 0.25);
    transform: translateY(-1px);
}

button.small,
.button.small {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
}

button.large,
.button.large {
    padding: 1.1rem 2.5rem !important;
    font-size: 1.05rem !important;
}

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
    font-size: 0.95rem;
}

.auth-link:hover {
    color: var(--primary-hover);
}

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: block;
    text-align: right;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: var(--primary-hover);
}

/* Card Styles */
.feature-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Client Selection Cards */
.client-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
}

.client-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.client-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.client-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Logo Enhancements */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    flex: 1;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 1.25rem;
}

.divider::after {
    margin-left: 1.25rem;
}

/* Help Text */
.help-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .auth-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Enhanced Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.password-strength.weak {
    width: 33%;
    background: var(--danger-color);
}

.password-strength.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength.strong {
    width: 100%;
    background: var(--success-color);
}

/* Global Body Styling */
body {
    background: var(--gradient-bg);
    min-height: 100vh;
}

/* Style wrapper */
.wrapper.style1 {
    background: transparent;
}

/* Logo Accent */
.logo-container img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Modern Footer */
.modern-footer {
    background: var(--text-dark);
    color: #999;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 200px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #666;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.toast {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.toast-message {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}
