/* MyMoodMates - Main CSS */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for specific elements */
input, textarea, [contenteditable], p, span, div.text-content {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Remove all focus outlines globally */
*:focus, *:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Regular.ttf'), format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
	font-size: 16px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure auth pages can scroll properly */
body.auth-page {
    overflow-y: auto;
    min-height: 100vh;
}

/* CSS Variables - Default (Adult) Theme */
:root {
    /* Colors */
    --primary: #4ECDC4;
    --primary-dark: #45B7B8;
    --primary-light: #6BCCC9;
    --secondary: #FF6B6B;
    --accent: #FFE66D;
    --success: #2ED573;
    --warning: #FFA502;
    --error: #FF4757;
    --info: #3742FA;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E9ECEF;
    --bg-dark: #2C3E50;
    
    /* Text Colors */
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    --text-light: #FFFFFF;
    
    /* Borders */
    --border-color: #DEE2E6;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --navbar-height: 70px;
    --sidebar-width: 280px;
}
.responsive_img{
	width:80%;
	height:auto;
}
/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
	margin-bottom: 50px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: #ff8000;
    text-decoration: none;
    transition: color 0.2s ease;
	border-style: none;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: #ff5000;
	text-decoration: none;
	border-style: none;
}

a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 0px solid transparent;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-large {
   /* padding: var(--spacing-lg) var(--spacing-2xl);*/
    font-size: var(--font-size-lg);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--bg-primary);
	font-family: 'Montserrat', sans-serif;
}

.form-input:focus {
    outline: none !important;
    border-color: var(--primary);
    box-shadow: none !important;
}

.form-input.error {
    border-color: var(--error);
}

.form-error {
    margin-top: var(--spacing-xs);
    color: var(--error);
    font-size: var(--font-size-sm);
}

.form-help {
    margin-top: var(--spacing-xs);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Checkbox & Radio */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox:checked + .checkbox-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--spacing-xs);
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Password Strength */
.password-strength {
    margin-top: var(--spacing-sm);
}

.strength-bar {
    height: 4px;
    background-color: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(46, 213, 115, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(255, 71, 87, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background-color: rgba(255, 165, 2, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(55, 66, 250, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    z-index: 1000;
}

.flash-messages .alert {
    margin-bottom: 0;
    border-radius: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
	border:none;
}

.brand-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #f90;
    background-color: rgba(255, 153, 0, 0.1);
}

/* Navigation badges */
.notification-badge,
.message-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: var(--spacing-xs);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--spacing-sm) 0;
    display: none;
    z-index: 1001;
}

/* Desktop hover - only on larger screens */
@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile click-based dropdown */
.nav-dropdown.active .dropdown-menu {
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: white;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: var(--spacing-sm) 0;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Navigation */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    position: relative;
    z-index: 10002;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 1px;
}

/* Hamburger to X animation */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hover effect for better feedback */
.navbar-toggle:hover span {
    background-color: var(--primary);
}

.navbar-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        justify-content: flex-start;
        padding: var(--spacing-md);
    }
    
    .dropdown-menu {
        position: static;
        display: none !important;
        box-shadow: none;
        border: none;
        background-color: var(--bg-secondary);
        margin-top: var(--spacing-sm);
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
        max-height: 300px;
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

/* Footer */
.footer {
    background-color: #202020;
  	color: var(--text-light);
  	padding: var(--spacing-2xl) 0 var(--spacing-lg);
  	margin-top: var(--spacing-2xl);
  	margin: -50px auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4,
.footer-section h5 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding-bottom: 10px;
	font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff9900;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
	margin-top: -20px;
}

.footer-badges {
    display: flex;
    gap: var(--spacing-md);
}

.badge {
    height: 100px;
    width: auto;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
}

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

/* Focus Styles for Accessibility - DISABLED (conflicts with global no-outline rule) */
/*
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}
*/

/* Removed - using existing page styles instead */

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .flash-messages {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* ===== MODERN AUTH STYLING ===== */
.auth-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 30px 1rem;
    min-height: auto;
    overflow: visible;
}

/* Register page needs wider container */
.auth-container.register-container {
    max-width: 650px;
    margin: 1rem auto 3rem auto;
    padding: 0 1rem;
}

.auth-card.modern-login {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    transition: all 0.3s ease;
}

.auth-card.modern-login:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #4f46e5);
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.auth-header p {
    color: var(--text-muted, #6b7280);
    font-size: 1rem;
    margin: 0;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

/* Modern Form Styling */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group.modern-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 0.875rem;
    margin: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.input-wrapper.focused .input-icon {
    color: var(--primary-color, #4f46e5);
    transform: scale(1.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted, #6b7280);
    font-size: 1.125rem;
    z-index: 2;
}

.form-input.modern-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--input-bg, #ffffff);
    color: var(--text-primary, #1f2937);
}

.form-input.modern-input:focus {
    outline: none;
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.form-input.modern-input.error {
    border-color: var(--error-color, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle.modern-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle.modern-toggle:hover {
    color: var(--primary-color, #4f46e5);
    background: rgba(79, 70, 229, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    font-weight: 500;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    background: var(--input-bg, #ffffff);
}

.checkbox:checked + .checkbox-custom {
    background: var(--primary-color, #4f46e5);
    border-color: var(--primary-color, #4f46e5);
}

.checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Modern Button */
.btn.modern-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, var(--primary-dark, #3730a3) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin-top: 0.5rem;
}

.btn.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

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

/* Modern Footer */
.auth-footer.modern-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-divider {
    position: relative;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    position: relative;
}

.signup-prompt {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Modern Help Section */
.auth-help.modern-help {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.auth-help.modern-help h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.help-link:hover {
    background: #f90;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.help-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
	color: #606060;
}

/* Error Messages */
.form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert.alert-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-container {
        margin: 1rem auto;
        padding: 30px 0.75rem 50px;
    }
    
    .auth-card.modern-login {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .help-links {
        gap: 0.5rem;
    }
    
    .help-link {
        padding: 0.625rem 0.875rem;
    }
}

/* ===== REGISTER PAGE SPECIFIC STYLING ===== */
.auth-card.modern-register {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.auth-card.modern-register:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-row.modern-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #333;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #f90);
}

.form-help i {
    font-size: 0.875rem;
    color: #4f46e5;
}

.required {
    color: #ef4444;
    font-weight: 600;
}

/* Parent Email Group Animation */
.parent-email-group {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    max-height: 0;
}

.parent-email-group.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
}

.parent-email-group .form-help {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.parent-email-group .form-help i {
    color: #ef4444;
}

/* Password Strength Indicator */
.password-strength.modern-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Form Agreements Section */
.form-agreements {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Success State for Password Confirmation */
.form-input.modern-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Login Link Styling */
.login-prompt {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}


/* Responsive Design for Register */
@media (max-width: 768px) {
    .auth-container.register-container {
        max-width: 100%;
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    .auth-card.modern-register {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .form-row.modern-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-agreements {
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .auth-container.register-container {
        margin: 0.5rem auto;
        padding: 0 0.5rem;
    }
    
    .auth-card.modern-register {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-help {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .strength-text {
        font-size: 0.75rem;
    }
    
    .form-agreements {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
}

/* ===== FORGOT PASSWORD PAGE SPECIFIC STYLING ===== */
.auth-card.modern-forgot {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card.modern-forgot:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Back Link Styling */
.back-prompt {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Success Alert Styling */
.alert.alert-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: #10b981;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.alert.alert-success i {
    font-size: 1rem;
    color: #10b981;
}

/* Enhanced Email Validation */
.form-input.modern-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Responsive Design for Forgot Password */
@media (max-width: 640px) {
    .auth-card.modern-forgot {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .back-link {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-card.modern-forgot {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.875rem;
    }
}