/* Masters of Consulting Portal Authentication Styles */

/* Auth Overlay */
#moc-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.logo-section h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-section p {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

/* Content */
.auth-content {
    padding: 40px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.form-header p {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input:valid {
    border-color: #28a745;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

.password-strength.weak { color: #dc3545; }
.password-strength.fair { color: #fd7e14; }
.password-strength.good { color: #20c997; }
.password-strength.strong { color: #28a745; }

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    margin: 0;
    color: #6c757d;
}

.auth-footer a, .switch-tab {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-footer a:hover, .switch-tab:hover {
    text-decoration: underline;
}

/* Features Section */
.features-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.features-section h3 {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.feature-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* Messages */
.auth-message {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

.auth-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Portal Button */
#moc-portal-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.portal-btn-content {
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-status {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    margin-top: 2px;
    display: inline-block;
}

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.chat-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.resources-btn {
    background: #f8f9fa;
    color: #2c3e50;
}

.logout-btn {
    background: #f8f9fa;
    color: #dc3545;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 16px;
}

.usage-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 24px;
    text-align: center;
}

/* Chat Interface */
#moc-chat-interface {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: slideUp 0.3s ease-out;
}

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 1;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-message.assistant .message-content {
    background: #f8f9fa;
    color: #2c3e50;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    padding: 0 16px;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

#chat-input:focus {
    border-color: #667eea;
}

#chat-send {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        width: 95%;
        margin: 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-content {
        padding: 30px 20px;
    }
    
    .logo-section h1 {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    #moc-portal-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    #moc-chat-interface {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        height: 70vh;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .auth-header {
        border-radius: 0;
    }
}/* Email 
Verification Styles */
.verification-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

#verification-code {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.verification-help {
    margin-top: 8px;
    text-align: center;
}

.verification-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.verification-help a:hover {
    text-decoration: underline;
}

.auth-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
    margin-top: 10px;
}

.auth-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
}/* Fo
rgot Password Link */
.forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: #5a6fd8;
}

/* Password Reset Styles */
.auth-footer p {
    margin: 8px 0;
}

.auth-footer p:last-child {
    margin-bottom: 0;
}

/* Mentor Button Styles */
.mentor-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* Booking Interface */
#moc-booking-interface {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.booking-header {
    padding: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.booking-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.booking-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.booking-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 200px;
    max-height: 400px;
}

.booking-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.booking-mentors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mentor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mentor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mentor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.mentor-info {
    flex: 1;
    min-width: 0;
}

.mentor-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 2px;
}

.mentor-domain {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 4px;
}

.mentor-bio {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-mentor-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.select-mentor-btn:hover {
    transform: scale(1.05);
}

/* Calendar View */
.booking-calendar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.back-to-mentors {
    background: none;
    border: none;
    color: #28a745;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    text-align: left;
}

.back-to-mentors:hover {
    text-decoration: underline;
}

.selected-mentor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mentor-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

.selected-mentor-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #2c3e50;
}

.mentor-domain-badge {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 0 4px 0;
}

.mentor-bio-full {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.calendar-nav button {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    transition: background 0.2s ease;
}

.calendar-nav button:hover {
    background: #e9ecef;
}

#week-label {
    font-weight: 600;
    color: #2c3e50;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-column.past-day {
    opacity: 0.5;
}

.day-header {
    text-align: center;
    padding: 8px 4px;
    background: #f8f9fa;
    border-radius: 8px;
}

.day-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.day-date {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 2px;
}

.day-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 60px;
}

.no-slots {
    font-size: 11px;
    color: #adb5bd;
    text-align: center;
    padding: 10px 4px;
}

.slot-btn {
    padding: 8px 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.slot-btn:hover {
    transform: scale(1.05);
}

/* My Sessions */
.booking-my-sessions {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.booking-my-sessions h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.my-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.my-session-card {
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.session-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.session-mentor {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.session-link {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.session-link:hover {
    opacity: 0.9;
}

.session-link.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
}

.session-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.session-status.no-link {
    background: #f8d7da;
    color: #721c24;
}

.session-status.upcoming {
    background: #fff3cd;
    color: #856404;
}

.session-status.ended {
    background: #e2e3e5;
    color: #6c757d;
}

.empty-state, .error-state {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.error-state {
    color: #dc3545;
}

/* Booking Interface Responsive */
@media (max-width: 768px) {
    #moc-booking-interface {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 85vh;
    }

    .week-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .day-column:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .day-column:nth-child(n+4) {
        display: none;
    }

    .booking-content {
        padding: 15px;
    }

    .mentor-card {
        flex-wrap: wrap;
    }

    .select-mentor-btn {
        width: 100%;
        margin-top: 10px;
    }
}