/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

.btn-preview {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: white;
    transform: scale(1.05);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff6b35;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-brand h1 {
    color: #333;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 100px 0 80px;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff; /* make the numbers white */
  }

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    color: #ffffff; /* make the numbers white */
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

#grade-filter {
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 180px;
}

#grade-filter:focus {
    outline: none;
    border-color: #ff6b35;
}

.results-count {
    color: #666;
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header h4 {
    color: #333;
    flex: 1;
    margin-right: 1rem;
}

.grade-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.card-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #666;
}

.meta-item i {
    color: #ff6b35;
    width: 16px;
    text-align: center;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.card-actions .btn-secondary,
.card-actions .btn-primary {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand i {
    font-size: 2rem;
    color: #ff6b35;
}

.footer-brand h4 {
    color: white;
}

.footer-brand p {
    color: #bbb;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h5 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.link-group a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .products-section,
    .features-section {
        padding: 60px 0;
    }
    
    .product-card {
        margin: 0;
    }
    
    .card-content {
        padding: 1rem;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }


/*LOG IN PAGE*/
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.login-brand {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.brand-icon i {
    font-size: 2.5rem;
    color: white;
}

.brand-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.brand-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list i {
    color: rgba(255, 255, 255, 0.8);
}

.login-form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

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

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

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

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.social-btn:hover {
    border-color: #ff6b35;
    transform: translateY(-1px);
}

.google-btn {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.microsoft-btn {
    background: #00a1f1;
    color: white;
    border-color: #00a1f1;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.back-link {
    display: none !important;
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 1rem;
    }
    
    .login-brand {
        padding: 2rem;
        min-height: 200px;
    }
    
    .brand-content h2 {
        font-size: 1.5rem;
    }
    
    .brand-content p {
        font-size: 1rem;
    }
    
    .login-form-section {
        padding: 2rem;
    }
    
    .back-link {
        position: static;
        margin-bottom: 1rem;
    }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*ACCESS PAGE*/

.access-page-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 100px 0 40px;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.user-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.user-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-detail i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.access-controls {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b35;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    width: 100%;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b35;
}

.resources-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.875rem;
    color: #ffffff; /* make the numbers white */
}

.resource-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.resource-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.resource-content {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
}

.resource-preview {
    position: relative;
}

.resource-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.resource-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    color: #666;
}

.meta-badge {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-progress {
    margin: 0.75rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.resource-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 160px;
}

.download-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #ff6b35;
    border: 1px solid #ff6b35;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.secondary-btn:hover {
    background: #ff6b35;
    color: white;
}

.includes-dropdown {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.includes-dropdown.show {
    display: block;
}

.includes-list {
    list-style: none;
    margin: 0.5rem 0;
}

.includes-list li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.875rem;
}

.includes-list li:before {
    content: "✓";
    color: #ff6b35;
    margin-right: 0.5rem;
    font-weight: bold;
}

.success-alert {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .resource-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .resource-actions {
        min-width: auto;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-stats {
        justify-content: center;
    }
    
    .user-details {
        grid-template-columns: 1fr;
    }
}

/* Homepage Responsive Navigation Fixes */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.coming-soon i {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.coming-soon h4 {
    color: #333;
    margin-bottom: 1rem;
}

.coming-soon p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header .container {
        position: relative;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        display: block;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }
    
    .nav-links a:hover {
        background-color: #f8f9fa;
    }
    
    /* Ensure Sign In button is always visible */
    .nav-links .btn-primary {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.25rem;
    }
}

/* Enhanced Mobile Login Page Fixes */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }
    
    .login-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .login-brand {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .brand-content h2 {
        font-size: 1.5rem;
    }
    
    .brand-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features-list {
        display: none; /* Hide features list on mobile to save space */
    }
    
    .login-form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .help-section {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .help-section p {
        font-size: 0.875rem;
        color: #666;
    }
    
    .help-section a {
        color: #ff6b35;
        text-decoration: none;
    }
}

/* iPhone specific fixes */
@media (max-width: 480px) {
    .login-page {
        padding: 0.5rem;
    }
    
    .login-container {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    
    .login-brand {
        padding: 1.5rem 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .brand-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .brand-icon i {
        font-size: 2rem;
    }
    
    .brand-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .brand-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .login-form-section {
        padding: 1.5rem 1rem;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .form-header p {
        font-size: 0.875rem;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .back-link {
        position: static;
        display: inline-flex;
        margin-bottom: 1rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        font-size: 0.875rem;
    }
}

/* Landscape orientation on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .login-page {
        padding: 0.5rem;
    }
    
    .login-container {
        grid-template-columns: 1fr 1fr;
        max-width: 700px;
        min-height: auto;
    }
    
    .login-brand {
        padding: 1.5rem;
    }
    
    .features-list {
        display: block;
    }
    
    .features-list li {
        padding: 0.25rem 0;
        font-size: 0.875rem;
    }
    
    .login-form-section {
        padding: 1.5rem;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .login-container {
        margin: 0;
        border-radius: 8px;
    }
    
    .form-group input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .password-toggle {
        right: 12px;
    }
}

/* Bottom Back Link Styling */
.bottom-link {
    text-align: center;
    margin-top: 2rem;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.back-to-home:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Remove old back-link styles that caused positioning issues */
.back-link {
    display: none !important;
}

/* Mobile adjustments for bottom link */
@media (max-width: 768px) {
    .bottom-link {
        margin-top: 1.5rem;
    }
    
    .back-to-home {
        font-size: 0.875rem;
        padding: 0.6rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .bottom-link {
        margin-top: 1rem;
    }
    
    .back-to-home {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Simple back link outside login container */
.back-link-simple {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link-simple .simple-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.back-link-simple .simple-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .back-link-simple {
        margin-top: 1rem;
    }
    
    .back-link-simple .simple-link {
        font-size: 0.8rem;
    }
}

/* Help section styling */
.help-section {
    margin-top: 1.5rem;
    text-align: center;
}

.help-section p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.help-section a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-section a:hover {
    color: #e55a30;
    text-decoration: underline;
}

.video-section {
    position: relative;
    height: 500px; /* adjust height as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
  }
  
  .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  .video-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
    padding: 2rem;
    border-radius: 12px;
    max-width: 700px;
  }