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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

:root {
    --primary-gradient: linear-gradient(45deg, #2193b0, #6dd5ed);
    --secondary-gradient: linear-gradient(45deg, #4e54c8, #8f94fb);
    --accent-gradient: linear-gradient(45deg, #ff6b6b, #feca57);
    --text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Base Layout */
.index-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Split Container */
.split-container {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

/* Showcase Side */
.showcase-side {
    flex: 1;
    background-image: url('../images/lms-index.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.showcase-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

/* Login Side */
.login-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

/* Login Cards */
.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: #2a5298;
}

/* Golden Theme for Student Login */
.login-card.student .card-icon {
    background: linear-gradient(135deg, #FFD700, #DAA520);
}

.login-card.student:hover {
    border-color: #DAA520;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.3);
}

.student-form .form-header {
    background: linear-gradient(135deg, #FFD700, #DAA520) !important;
}

.btn-success {
    background: linear-gradient(135deg, #FFD700, #DAA520) !important;
    border-color: #DAA520 !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #DAA520, #B8860B) !important;
    border-color: #B8860B !important;
}

.login-card.student .card-title {
    color: #B8860B;
}

/* Admin Theme */
.login-card.admin .card-icon {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.login-card.admin:hover {
    border-color: #2193b0;
    box-shadow: 0 0 15px rgba(33, 147, 176, 0.3);
}

.admin-form .form-header {
    background: linear-gradient(135deg, #2193b0, #6dd5ed) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #2193b0, #6dd5ed) !important;
    border-color: #2193b0 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b7a94, #5ab8d6) !important;
    border-color: #1b7a94 !important;
}

.login-card.admin .card-title {
    color: #2193b0;
}

/* Staff Theme */
.login-card.staff .card-icon {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
}

.login-card.staff:hover {
    border-color: #4e54c8;
    box-shadow: 0 0 15px rgba(78, 84, 200, 0.3);
}

.staff-form .form-header {
    background: linear-gradient(135deg, #4e54c8, #8f94fb) !important;
}

.btn-info {
    background: linear-gradient(135deg, #4e54c8, #8f94fb) !important;
    border-color: #4e54c8 !important;
    color: white !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #3f44a0, #7378d9) !important;
    border-color: #3f44a0 !important;
}

.login-card.staff .card-title {
    color: #4e54c8;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

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

.welcome-title {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--text-shadow);
    font-size: 3.5rem;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.welcome-lead {
    color: #8f94fb;
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: var(--text-shadow);
    transition: all 0.3s ease;
}

.welcome-subtitle {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: var(--text-shadow);
    transition: all 0.3s ease;
}

.divider {
    height: 3px;
    background: var(--secondary-gradient);
    margin: 2rem auto;
    width: 0;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-title:hover,
.welcome-lead:hover,
.welcome-subtitle:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Form Overlay Styles */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    display: none;
}

.login-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    width: 90%;
    max-width: 400px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.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: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2a5298;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1e3c72;
}

/* Show Classes */
.form-overlay.show {
    display: block;
}

.login-form.show {
    display: block;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .showcase-side {
        height: 30vh;
    }

    .login-side {
        height: 70vh;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .login-container {
        padding: 1rem;
    }

    .login-options {
        grid-template-columns: 1fr;
    }
}

/* Mobile Header Styles */
.mobile-header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    padding: 1rem;
}

.mobile-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.mobile-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Layout */
@media (max-width: 991px) {
    .login-side {
        width: 100%;
        padding: 1rem;
    }
    
    .login-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .split-container {
        display: flex;
    }
    
    .showcase-side,
    .login-side {
        width: 50%;
    }
}

/* Footer Styles */
.index-footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 50px;
  height: 2px;
  background: #2a5298;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #2a5298;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

