/* ===================================
   KTU Identity Server - Lodgenda Integration
   Enhanced with Bootstrap & FontAwesome
   Koforidua Technical University
   =================================== */

/* KTU Brand Colors */
:root {
    --ktu-blue: #004C84;
    --ktu-orange: #E77917;
    --ktu-light-blue: #0066B3;
    --ktu-white: #FFFFFF;
    --ktu-light-gray: #F8F9FA;
    --ktu-gray: #6C757D;
    --ktu-dark: #343A40;
    --ktu-border: #E5E7EB;
    --ktu-text-light: #9CA3AF;
    --ktu-success: #10B981;
    --ktu-warning: #F59E0B;
    --ktu-danger: #EF4444;
}

/* Global Overrides */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--ktu-dark);
    line-height: 1.6;
}

/* Enhanced Header with Lodgenda Style */
.ktu-header {
    background: var(--ktu-white);
    border-bottom: 1px solid var(--ktu-border);
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ktu-logo {
    height: 48px;
    width: auto;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.ktu-logo:hover {
    transform: scale(1.05);
}

.ktu-title {
    color: var(--ktu-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ktu-title:hover {
    color: var(--ktu-orange);
    text-decoration: none;
}

.ktu-subtitle {
    color: var(--ktu-text-light);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

/* Enhanced Navigation */
.menu {
    background: var(--ktu-white);
    border-bottom: 1px solid var(--ktu-border);
    padding: 1rem 0;
}

.menu-logo .logo {
    color: var(--ktu-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.menu-logo .logo:hover {
    color: var(--ktu-orange);
    text-decoration: none;
}

/* Enhanced Buttons with Bootstrap Integration */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ktu-blue) 0%, var(--ktu-light-blue) 100%);
    border-color: var(--ktu-blue);
    color: var(--ktu-white);
    box-shadow: 0 2px 4px rgba(0, 76, 132, 0.2);
}

.btn-primary:hover {
    background: var(--ktu-light-blue);
    border-color: var(--ktu-light-blue);
    color: var(--ktu-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 76, 132, 0.3);
}

.btn-outline-primary {
    color: var(--ktu-blue);
    border-color: var(--ktu-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--ktu-blue);
    border-color: var(--ktu-blue);
    color: var(--ktu-white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Enhanced Cards */
.card {
    border: 1px solid var(--ktu-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--ktu-white);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--ktu-blue) 0%, var(--ktu-light-blue) 100%);
    color: var(--ktu-white);
    border-bottom: none;
    font-weight: 600;
    text-align: center;
    padding: 1.25rem;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Enhanced Forms */
.form-control {
    border: 2px solid var(--ktu-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--ktu-orange);
    box-shadow: 0 0 0 0.2rem rgba(231, 121, 23, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--ktu-blue);
    color: var(--ktu-white);
    border: 2px solid var(--ktu-blue);
    font-weight: 500;
}

/* Modern Hero Section */
.welcome-section {
    background: var(--ktu-white);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--ktu-border);
}

.welcome-logo {
    height: 4rem;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 76, 132, 0.1));
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ktu-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: var(--ktu-gray);
    margin-bottom: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-motto {
    font-size: 1rem;
    color: var(--ktu-orange);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

/* Enhanced Feature Cards */
.service-card {
    background: var(--ktu-white);
    border: 1px solid var(--ktu-border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--ktu-orange);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--ktu-blue);
    margin-bottom: 1.5rem;
    display: block;
}

.service-title {
    color: var(--ktu-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: var(--ktu-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* Login Page Enhancements */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-logo {
    height: 3.5rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.login-title {
    color: var(--ktu-blue);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.login-subtitle {
    color: var(--ktu-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Minimal Footer - Clean & Simple */
footer {
    background: var(--ktu-white);
    border-top: 1px solid var(--ktu-border);
    margin-top: 0;
    padding: 3rem 0 2rem;
}

footer h5 {
    color: var(--ktu-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

footer .text-muted {
    color: var(--ktu-dark) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

footer strong {
    color: var(--ktu-blue) !important;
    font-weight: 600;
}

footer .list-unstyled {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer .list-unstyled a {
    color: var(--ktu-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

footer .list-unstyled a:hover {
    color: var(--ktu-orange);
    text-decoration: underline;
}

footer hr {
    border-color: var(--ktu-border);
    margin: 2rem 0 1.5rem;
    opacity: 0.3;
}

footer .border-top {
    border-color: var(--ktu-border) !important;
}

/* Footer motto styling */
footer .col-12 small {
    color: var(--ktu-gray) !important;
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1.5rem;
    }

    footer .text-md-right {
        text-align: left !important;
        margin-top: 1.5rem;
    }

    footer .col-md-8,
    footer .col-md-4 {
        margin-bottom: 1rem;
    }

    footer hr {
        margin: 1.5rem 0 1rem;
    }
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: 1px solid var(--ktu-border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--ktu-light-gray);
    color: var(--ktu-blue);
}

/* Alert Enhancements */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--ktu-success);
    border-left: 4px solid var(--ktu-success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--ktu-warning);
    border-left: 4px solid var(--ktu-warning);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .ktu-logo {
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .login-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

/* ===================================
   Animated Home Page Styles
   =================================== */

/* ===================================
   Redesigned Home Page Styles
   =================================== */

/* Animated Hero Section with Student Images */
.hero-section {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.7) 100%),
        url('../images/students.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--ktu-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Floating Student Images */
.student-images {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.student-img {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    z-index: 2;
}

.student-avatar {
    font-size: 2.5rem;
    background: rgba(0, 76, 132, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.student-img:hover .student-avatar {
    transform: scale(1.15);
    background: rgba(231, 121, 23, 0.3);
    border-color: rgba(231, 121, 23, 0.5);
    box-shadow: 0 6px 20px rgba(231, 121, 23, 0.3);
}

.student-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.student-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.student-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.student-4 {
    top: 70%;
    right: 20%;
    animation-delay: 3s;
}

.student-5 {
    top: 40%;
    left: 85%;
    animation-delay: 4s;
}

.student-6 {
    top: 80%;
    left: 50%;
    animation-delay: 5s;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.circle-1 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--ktu-orange), #f39c12);
    top: 20%;
    left: 70%;
    animation-delay: 0s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #10b981, #059669);
    top: 70%;
    left: 80%;
    animation-delay: 5s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(231, 121, 23, 0.3);
    top: 30%;
    left: 20%;
    animation-delay: 2s;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(16, 185, 129, 0.3);
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.square-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.3));
    transform: rotate(45deg);
    top: 10%;
    left: 50%;
    animation-delay: 3s;
}

.square-2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    transform: rotate(45deg);
    top: 85%;
    left: 30%;
    animation-delay: 8s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.3) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-highlight {
    background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ktu-orange);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.university-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.university-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ktu-border);
}

.university-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.university-info h3 {
    color: var(--ktu-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.university-info p {
    color: var(--ktu-orange);
    font-size: 0.875rem;
    margin: 0;
    font-style: italic;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--ktu-blue);
    font-weight: 500;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.system-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.system-dot.active {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
}

.system-dot.maintenance {
    background: linear-gradient(135deg, var(--ktu-gray), #9ca3af);
}

.system-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ktu-white);
    border-radius: 50%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 40%;
    left: 5%;
    animation-delay: 3s;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 76, 132, 0.2));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ktu-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--ktu-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-motto {
    font-size: 1.1rem;
    color: var(--ktu-orange);
    font-weight: 500;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.security-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.security-card {
    background: var(--ktu-white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ktu-border);
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.security-card i {
    font-size: 2rem;
    color: var(--ktu-blue);
    margin-bottom: 1rem;
}

.security-card h6 {
    color: var(--ktu-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.security-card p {
    color: var(--ktu-gray);
    font-size: 0.875rem;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ktu-blue);
    font-size: 1.5rem;
    z-index: 2;
}

/* Systems Section */
.systems-section {
    padding: 5rem 0;
    background: var(--ktu-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--ktu-gray);
    max-width: 600px;
    margin: 0 auto;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.system-card {
    background: var(--ktu-white);
    border: 1px solid var(--ktu-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--ktu-orange);
}

.system-card.featured {
    border: 2px solid var(--ktu-orange);
    background: linear-gradient(135deg, rgba(231, 121, 23, 0.05), rgba(0, 76, 132, 0.05));
}

.system-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.system-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--ktu-border);
}

.system-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.system-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--ktu-white);
}

.system-icon.primary {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
}

.system-icon.secondary {
    background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
}

.system-icon.tertiary {
    background: linear-gradient(135deg, #10b981, #059669);
}

.system-icon.quaternary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.system-icon.muted {
    background: linear-gradient(135deg, var(--ktu-gray), #9ca3af);
}

.system-info {
    flex: 1;
}

.system-info h4 {
    color: var(--ktu-blue);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 0.25rem 0;
}

.system-tag {
    background: rgba(0, 76, 132, 0.1);
    color: var(--ktu-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-status {
    font-size: 0.875rem;
}

.system-status.active {
    color: #10b981;
}

.system-status.maintenance {
    color: #f59e0b;
}

.system-card p {
    color: var(--ktu-gray);
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--ktu-light-gray), #e2e8f0);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--ktu-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ktu-gray);
    font-size: 0.875rem;
}

/* Button Enhancements */
.btn-outline-light {
    color: var(--ktu-white);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: var(--ktu-white);
    color: var(--ktu-blue);
    border-color: var(--ktu-white);
}

/* Enhanced Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated:hover {
    transform: translateY(-2px);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-dot {
    animation: pulse-dot 2s infinite;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.8s ease-out;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.animate-dot {
    animation: fadeUp 0.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Animation Delays */
[data-delay="0"] { animation-delay: 0ms; }
[data-delay="100"] { animation-delay: 100ms; }
[data-delay="200"] { animation-delay: 200ms; }
[data-delay="300"] { animation-delay: 300ms; }
[data-delay="400"] { animation-delay: 400ms; }
[data-delay="500"] { animation-delay: 500ms; }
[data-delay="600"] { animation-delay: 600ms; }
[data-delay="700"] { animation-delay: 700ms; }
[data-delay="800"] { animation-delay: 800ms; }
[data-delay="1000"] { animation-delay: 1000ms; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1rem;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .university-card {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .university-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .university-logo {
        width: 50px;
        height: 50px;
    }

    .system-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .system-dot {
        width: 30px;
        height: 30px;
    }

    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .system-card {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
        background-attachment: scroll; /* Better performance on mobile */
        background-position: center top;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .student-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .student-1, .student-3, .student-5 {
        display: none; /* Hide some avatars on mobile for cleaner look */
    }

    .system-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .systems-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }
}

/* Logo Fallbacks */
.ktu-logo-fallback,
.hero-logo-fallback,
.welcome-logo-fallback,
.login-logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-text-fallback {
    text-align: center;
}

/* CSS-based Logo Alternative */
.css-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 76, 132, 0.3);
}

.css-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 76, 132, 0.4);
    text-decoration: none;
    color: white;
}

.css-logo-large {
    width: 80px;
    height: 80px;
    font-size: 24px;
    border-radius: 16px;
}

/* Alternative Text Logo */
.text-logo {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ktu-blue);
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.text-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    border-radius: 2px;
}

.text-logo:hover {
    color: var(--ktu-orange);
    text-decoration: none;
}

/* Application Cards */
.app-card {
    background: var(--ktu-white);
    border: 1px solid var(--ktu-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--ktu-orange);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover::before {
    transform: scaleX(1);
}

/* Disabled App Cards */
.app-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-card.disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-color: var(--ktu-border);
}

.app-card.disabled::before {
    display: none;
}

.app-card.disabled .app-icon {
    background: linear-gradient(135deg, var(--ktu-gray), #9ca3af);
}

.app-card.disabled:hover .app-icon {
    background: linear-gradient(135deg, var(--ktu-gray), #9ca3af);
    transform: none;
}

.app-card.disabled .app-title {
    color: var(--ktu-gray);
}

.app-card.disabled .app-subtitle {
    color: var(--ktu-gray);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.app-icon i {
    font-size: 1.5rem;
    color: var(--ktu-white);
}

.app-card:hover .app-icon {
    background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
    transform: scale(1.1);
}

.app-title {
    color: var(--ktu-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.app-subtitle {
    color: var(--ktu-orange);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.app-description {
    color: var(--ktu-gray);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.app-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.app-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.app-status.maintenance {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Section Headers */
.container h3.text-ktu-blue {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.container .text-muted {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Responsive adjustments for app cards */
@media (max-width: 768px) {
    .app-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .app-icon {
        width: 50px;
        height: 50px;
    }

    .app-icon i {
        font-size: 1.25rem;
    }

    .app-title {
        font-size: 1rem;
    }

    .app-description {
        font-size: 0.85rem;
    }
}

/* ===================================
   Clean Modern Login Page Styles
   =================================== */

/* Clean Login Page Layout */
.clean-login-page {
    min-height: 100vh;
    background: #f8fafc;
}

/* Branding Side */
.branding-side {
    background: linear-gradient(135deg, var(--ktu-blue) 0%, var(--ktu-light-blue) 100%);
    color: var(--ktu-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.branding-container {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
}

.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-css-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ktu-white);
    margin: 0 auto;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 1.25rem;
    color: var(--ktu-orange);
    margin-bottom: 2rem;
    font-weight: 500;
}

.brand-motto {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.brand-motto p {
    font-size: 1.125rem;
    font-style: italic;
    margin: 0;
    opacity: 0.9;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 1.25rem;
    color: var(--ktu-orange);
    width: 24px;
}

.feature span {
    font-weight: 500;
}

/* Form Side */
.form-side {
    background: var(--ktu-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.mobile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ktu-border);
}

.mobile-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.mobile-css-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ktu-white);
    margin: 0 auto 1rem;
}

.mobile-header h2 {
    color: var(--ktu-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.login-container {
    background: var(--ktu-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ktu-border);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.login-description {
    color: var(--ktu-gray);
    font-size: 1rem;
    margin: 0;
}

/* Clean Login Form */
.clean-login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ktu-gray);
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--ktu-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--ktu-blue);
    box-shadow: 0 0 0 3px rgba(0, 76, 132, 0.1);
    background: var(--ktu-white);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ktu-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--ktu-blue);
    background: rgba(0, 76, 132, 0.1);
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

/* Mobile-specific error styling */
@media (max-width: 576px) {
    .error-message {
        font-size: 0.9rem;
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox {
    margin-right: 0.5rem;
    accent-color: var(--ktu-blue);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--ktu-gray);
    cursor: pointer;
}

.forgot-link {
    color: var(--ktu-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--ktu-orange);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
    color: var(--ktu-white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 76, 132, 0.3);
}

.register-section {
    text-align: center;
    margin-bottom: 1rem;
}

.register-section p {
    color: var(--ktu-gray);
    font-size: 0.9rem;
    margin: 0;
}

.register-link {
    color: var(--ktu-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--ktu-orange);
}

.cancel-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--ktu-border);
}

.btn-cancel {
    background: none;
    border: none;
    color: var(--ktu-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-cancel:hover {
    color: var(--ktu-blue);
}

.external-providers {
    margin-top: 2rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ktu-border);
}

.divider span {
    background: var(--ktu-white);
    padding: 0 1rem;
    color: var(--ktu-gray);
    font-size: 0.9rem;
}

.external-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--ktu-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ktu-gray);
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.btn-external:hover {
    border-color: var(--ktu-blue);
    color: var(--ktu-blue);
    background: var(--ktu-white);
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-top: 1rem;
}

.alert i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.alert strong {
    color: #f59e0b;
}

.alert p {
    margin: 0.25rem 0 0 0;
    color: var(--ktu-gray);
    font-size: 0.9rem;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(231, 121, 23, 0.3),
        rgba(0, 76, 132, 0.2));
    animation: float-particle 8s ease-in-out infinite;
}

.particle-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.particle-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

.particle-4 {
    width: 50px;
    height: 50px;
    top: 70%;
    right: 10%;
    animation-delay: 6s;
}

.particle-5 {
    width: 30px;
    height: 30px;
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.particle-6 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 76, 132, 0.3) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

/* Left Side - Branding */
.login-branding {
    background: rgba(0, 76, 132, 0.95);
    backdrop-filter: blur(10px);
    color: var(--ktu-white);
    position: relative;
    z-index: 2;
}

.branding-content {
    padding: 3rem;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.university-logo {
    margin-bottom: 2rem;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.branding-subtitle {
    font-size: 1.5rem;
    color: var(--ktu-orange);
    margin-bottom: 2rem;
    font-weight: 500;
}

.branding-motto {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--ktu-orange);
}

/* Right Side - Login Form */
.login-form-section {
    background: var(--ktu-white);
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--ktu-gray);
    font-size: 1rem;
}

/* Login Card */
.login-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ktu-border);
}

.login-form .form-floating {
    position: relative;
}

.login-form .form-floating label {
    color: var(--ktu-gray);
    font-weight: 500;
}

.login-form .form-control {
    border: 2px solid var(--ktu-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--ktu-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 76, 132, 0.25);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--ktu-gray);
    z-index: 10;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--ktu-blue);
}

.form-check-label {
    color: var(--ktu-gray);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--ktu-blue);
    border-color: var(--ktu-blue);
}

/* Login Actions */
.login-actions {
    margin-top: 1.5rem;
}

.login-btn {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 76, 132, 0.3);
}

.secondary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.forgot-link {
    color: var(--ktu-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--ktu-orange);
}

.cancel-btn {
    color: var(--ktu-gray);
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
}

.cancel-btn:hover {
    color: var(--ktu-blue);
}

.register-section {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ktu-border);
}

.register-text {
    color: var(--ktu-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.register-btn {
    border-color: var(--ktu-orange);
    color: var(--ktu-orange);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: var(--ktu-orange);
    color: var(--ktu-white);
    transform: translateY(-1px);
}

/* External Providers */
.external-providers {
    margin-top: 2rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ktu-border);
}

.divider span {
    background: var(--ktu-white);
    padding: 0 1rem;
    color: var(--ktu-gray);
    font-size: 0.9rem;
}

.external-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.external-btn {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border-color: var(--ktu-border);
    color: var(--ktu-gray);
    transition: all 0.3s ease;
}

.external-btn:hover {
    border-color: var(--ktu-blue);
    color: var(--ktu-blue);
    transform: translateY(-1px);
}

/* Alert Styles */
.no-login-methods {
    border-radius: 12px;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-content i {
    font-size: 1.5rem;
    color: #f59e0b;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .login-branding {
        display: none !important;
    }

    .login-form-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--ktu-blue) 100%);
    }

    .login-form-container {
        padding: 1rem;
    }

    .login-card {
        margin: 1rem 0;
    }

    /*.login-header .login-title,
    .login-header .login-subtitle {
        color: var(--ktu-white);
    }*/
}

@media (max-width: 576px) {
    .branding-title {
        font-size: 2rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===================================
   Modern Register Page Styles
   =================================== */

/* Register Page Layout */
.register-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.register-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
        url('../images/students.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.register-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 76, 132, 0.2) 0%, rgba(30, 41, 59, 0.3) 100%);
    backdrop-filter: blur(2px);
}

/* Left Side - Welcome */
.register-welcome {
    background: linear-gradient(135deg, var(--ktu-blue) 0%, var(--ktu-light-blue) 100%);
    color: var(--ktu-white);
    position: relative;
    z-index: 2;
}

.welcome-content {
    padding: 3rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.welcome-features {
    margin-bottom: 3rem;
}

.welcome-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.welcome-features .feature-item i {
    font-size: 1.5rem;
    color: var(--ktu-orange);
    margin-top: 0.25rem;
}

.welcome-features .feature-item h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.welcome-features .feature-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.already-member {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.already-member p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Right Side - Register Form */
.register-form-section {
    background: var(--ktu-white);
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.register-form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.register-subtitle {
    color: var(--ktu-gray);
    font-size: 1rem;
}

/* Register Card */
.register-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ktu-border);
}

.register-form .form-floating {
    position: relative;
}

.register-form .form-floating label {
    color: var(--ktu-gray);
    font-weight: 500;
}

.register-form .form-control {
    border: 2px solid var(--ktu-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.register-form .form-control:focus {
    border-color: var(--ktu-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 76, 132, 0.25);
}

/* Register Actions */
.register-actions {
    margin-top: 1.5rem;
}

.register-btn {
    background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 121, 23, 0.3);
}

.login-link {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ktu-border);
    margin-top: 1.5rem;
}

.login-text {
    color: var(--ktu-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-btn {
    border-color: var(--ktu-blue);
    color: var(--ktu-blue);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--ktu-blue);
    color: var(--ktu-white);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .register-welcome {
        display: none !important;
    }

    .register-form-section {
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
            url('../images/students.jpg');
        background-size: cover;
        background-position: center;
    }

    .register-form-container {
        padding: 1rem;
    }

    .register-card {
        margin: 1rem 0;
    }

    .register-header .register-title,
    .register-header .register-subtitle {
        color: var(--ktu-white);
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 2rem;
    }

    .register-title {
        font-size: 1.75rem;
    }

    .register-card {
        padding: 1.5rem;
    }

    .welcome-features .feature-item {
        padding: 1rem;
    }
}

/* ===================================
   Modern Forgot Password Page Styles
   =================================== */

/* Forgot Password Page Layout */
.forgot-password-page {
    position: relative;
    min-height: 100vh;
}

.forgot-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
        url('../images/students.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.forgot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 76, 132, 0.3) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(2px);
}

/* Forgot Password Card */
.forgot-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ktu-border);
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.forgot-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.forgot-header .university-logo {
    margin-bottom: 1.5rem;
}

.forgot-header .logo-img {
    height: 60px;
    width: auto;
}

.forgot-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.forgot-subtitle {
    color: var(--ktu-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Policy Selection */
.policy-selection {
    background: rgba(0, 76, 132, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 76, 132, 0.1);
}

.policy-title {
    color: var(--ktu-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.policy-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-options .form-check {
    background: var(--ktu-white);
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid var(--ktu-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.policy-options .form-check:hover {
    border-color: var(--ktu-blue);
    background: rgba(0, 76, 132, 0.02);
}

.policy-options .form-check-input:checked + .form-check-label {
    color: var(--ktu-blue);
    font-weight: 600;
}

.policy-options .form-check-input:checked {
    background-color: var(--ktu-blue);
    border-color: var(--ktu-blue);
}

.policy-options .form-check-label {
    color: var(--ktu-gray);
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

/* Reset Sections */
.reset-section {
    margin-top: 1.5rem;
}

.forgot-form .form-floating label {
    color: var(--ktu-gray);
    font-weight: 500;
}

.forgot-form .form-control {
    border: 2px solid var(--ktu-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.forgot-form .form-control:focus {
    border-color: var(--ktu-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 76, 132, 0.25);
}

/* Reset Button */
.reset-btn {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 76, 132, 0.3);
}

/* Back to Login */
.back-to-login {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--ktu-border);
    margin-top: 2rem;
}

.back-text {
    color: var(--ktu-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-btn {
    border-color: var(--ktu-gray);
    color: var(--ktu-gray);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover {
    border-color: var(--ktu-blue);
    color: var(--ktu-blue);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-card {
        padding: 2rem;
        margin: 1rem;
    }

    .forgot-title {
        font-size: 1.75rem;
    }

    .policy-options {
        gap: 0.5rem;
    }

    .policy-options .form-check {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .forgot-card {
        padding: 1.5rem;
    }

    .forgot-title {
        font-size: 1.5rem;
    }

    .policy-selection {
        padding: 1rem;
    }
}

/* ===================================
   Reset Password, Logout & LoggedOut Pages
   =================================== */

/* Reset Password Page */
.reset-password-page {
    position: relative;
    min-height: 100vh;
}

.reset-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
        url('../images/students.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.reset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 76, 132, 0.3) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.reset-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ktu-border);
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.reset-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reset-header .university-logo {
    margin-bottom: 1.5rem;
}

.reset-header .logo-img {
    height: 60px;
    width: auto;
}

.reset-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.reset-subtitle {
    color: var(--ktu-gray);
    font-size: 1rem;
    line-height: 1.5;
}

.reset-form .form-floating label {
    color: var(--ktu-gray);
    font-weight: 500;
}

.reset-form .form-control {
    border: 2px solid var(--ktu-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reset-form .form-control:focus {
    border-color: var(--ktu-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 76, 132, 0.25);
}

.reset-form .form-control[readonly] {
    background-color: rgba(0, 76, 132, 0.05);
    border-color: rgba(0, 76, 132, 0.2);
}

/* Logout Page */
.logout-page {
    position: relative;
    min-height: 100vh;
}

.logout-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
        url('../images/students.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.logout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.logout-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ktu-border);
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.logout-header {
    margin-bottom: 2rem;
}

.logout-header .university-logo {
    margin-bottom: 1.5rem;
}

.logout-header .logo-img {
    height: 60px;
    width: auto;
}

.logout-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem;
}

.logout-message {
    color: var(--ktu-gray);
    font-size: 1rem;
    line-height: 1.5;
}

.logout-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.cancel-btn {
    border-color: var(--ktu-gray);
    color: var(--ktu-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: var(--ktu-blue);
    color: var(--ktu-blue);
    transform: translateY(-1px);
}

/* Logged Out Page */
.logged-out-page {
    position: relative;
    min-height: 100vh;
}

.logged-out-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
        url('../images/students.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.logged-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.logged-out-card {
    background: var(--ktu-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ktu-border);
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.logged-out-header {
    margin-bottom: 2rem;
}

.logged-out-header .university-logo {
    margin-bottom: 1rem;
}

.logged-out-header .logo-img {
    height: 60px;
    width: auto;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.danger-icon {
    font-size: 4rem;
    color: #ff1d1b;
    margin-bottom: 1rem;
}

.logged-out-title {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.logged-out-subtitle {
    color: var(--ktu-gray);
    font-size: 1rem;
    line-height: 1.5;
}

.redirect-info {
    margin-bottom: 2rem;
}

.redirect-message {
    color: var(--ktu-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.redirect-link {
    color: var(--ktu-blue);
    text-decoration: none;
    font-weight: 600;
}

.redirect-link:hover {
    color: var(--ktu-orange);
}

.redirect-btn {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 76, 132, 0.3);
}

.success-message {
    color: var(--ktu-gray);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.additional-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ktu-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reset-card,
    .logout-card,
    .logged-out-card {
        padding: 2rem;
        margin: 1rem;
    }

    .reset-title,
    .logout-title,
    .logged-out-title {
        font-size: 1.75rem;
    }

    .success-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .reset-card,
    .logout-card,
    .logged-out-card {
        padding: 1.5rem;
    }

    .reset-title,
    .logout-title,
    .logged-out-title {
        font-size: 1.5rem;
    }
}

/* ===================================
   Enhanced Login Form Styles
   =================================== */

/* Form Section */
.login-form-section {
    background: var(--ktu-white);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Mobile Logo */
.mobile-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-logo-img {
    height: 60px;
    width: auto;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ktu-blue);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--ktu-gray);
    font-size: 1.125rem;
}

/* Enhanced Login Card */
.enhanced-login-card {
    background: var(--ktu-white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ktu-border);
    position: relative;
    overflow: hidden;
}

.enhanced-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-orange));
}

/* Enhanced Input Groups */
.input-group-enhanced {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: var(--ktu-gray);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.input-group-enhanced.focused .input-icon {
    color: var(--ktu-blue);
    transform: translateY(-50%) scale(1.1);
}

.enhanced-input {
    border: 2px solid var(--ktu-border);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.enhanced-input:focus {
    border-color: var(--ktu-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 76, 132, 0.15);
    background: var(--ktu-white);
}

.enhanced-input:focus + label {
    color: var(--ktu-blue);
}

.form-floating > .enhanced-input:focus ~ label,
.form-floating > .enhanced-input:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--ktu-blue);
}

.form-floating > label {
    padding-left: 3.5rem;
    color: var(--ktu-gray);
    font-weight: 500;
}

/* Password Toggle Enhanced */
.password-toggle-enhanced {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--ktu-gray);
    z-index: 3;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.password-toggle-enhanced:hover {
    color: var(--ktu-blue);
    background: rgba(0, 76, 132, 0.1);
}

.password-toggle-enhanced.active {
    color: var(--ktu-blue);
}

/* Validation Messages */
.validation-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ktu-gray);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ktu-border);
    border-radius: 6px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom {
    background: var(--ktu-blue);
    border-color: var(--ktu-blue);
}

.checkbox-input:checked + .checkbox-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ktu-white);
    font-size: 0.75rem;
    font-weight: bold;
}

.forgot-password-link {
    color: var(--ktu-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--ktu-orange);
}

/* Enhanced Button */
.btn-enhanced {
    position: relative;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background: linear-gradient(135deg, var(--ktu-blue), var(--ktu-light-blue));
    color: var(--ktu-white);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 76, 132, 0.3);
}

.btn-login.loading .btn-content {
    opacity: 0;
}

.btn-login.loading .btn-loading {
    opacity: 1;
}

.btn-content {
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--ktu-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Register Prompt */
.register-prompt {
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-text {
    color: var(--ktu-gray);
    font-size: 0.9rem;
    margin: 0;
}

.register-link {
    color: var(--ktu-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--ktu-orange);
}

/* Cancel Section */
.cancel-section {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ktu-border);
}

.btn-text {
    background: none;
    border: none;
    color: var(--ktu-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: var(--ktu-blue);
}

/* External Providers Enhanced */
.external-providers-section {
    margin-top: 2rem;
}

.divider-enhanced {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ktu-border);
}

.divider-text {
    background: var(--ktu-white);
    padding: 0 1.5rem;
    color: var(--ktu-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.external-providers-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.external-provider-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid var(--ktu-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ktu-gray);
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.external-provider-btn:hover {
    border-color: var(--ktu-blue);
    color: var(--ktu-blue);
    background: var(--ktu-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.provider-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--ktu-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.provider-name {
    flex: 1;
    font-weight: 500;
}

.provider-arrow {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.external-provider-btn:hover .provider-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* No Login Alert */
.no-login-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-top: 2rem;
}

.alert-icon {
    font-size: 1.5rem;
    color: #f59e0b;
}

.alert-content h4 {
    color: #f59e0b;
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
}

.alert-content p {
    color: var(--ktu-gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Enhanced Mobile Design for Clean Login */
@media (max-width: 991px) {
    .branding-side {
        display: none !important;
    }

    .clean-login-page {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--ktu-blue) 100%);
        min-height: 100vh;
        padding: 1rem 0;
    }

    .form-side {
        background: transparent;
        padding: 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .form-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .mobile-header {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-header h2 {
        color: var(--ktu-white);
        font-size: 1.5rem;
        margin: 0 0 0.5rem 0;
    }

    .mobile-tagline {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        margin: 0;
        font-style: italic;
    }

    .mobile-logo {
        height: 50px;
        width: auto;
        margin-bottom: 1rem;
        filter: brightness(0) invert(1);
    }

    .mobile-css-logo {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--ktu-white);
        margin: 0 auto 1rem;
    }

    .login-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .login-title {
        color: var(--ktu-blue);
        font-size: 1.75rem;
    }

    .login-description {
        color: var(--ktu-gray);
    }

    .form-control {
        padding: 1.25rem 1.25rem 1.25rem 3.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .btn-login {
        padding: 1.25rem;
        font-size: 1.125rem;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .clean-login-page {
        padding: 0.5rem 0;
    }

    .form-side {
        padding: 0.5rem;
        padding-top: 1rem;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .mobile-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .mobile-header h2 {
        font-size: 1.25rem;
    }

    .mobile-logo {
        height: 40px;
    }

    .mobile-css-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .login-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-description {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-control {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
        min-height: 50px;
    }

    .input-icon {
        left: 0.75rem;
        font-size: 1rem;
    }

    .password-toggle {
        right: 0.75rem;
        padding: 0.75rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-login {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
        border-radius: 10px;
    }

    .register-section {
        margin-bottom: 0.75rem;
    }

    .cancel-section {
        padding-top: 0.75rem;
    }

    .external-providers {
        margin-top: 1.5rem;
    }

    .btn-external {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
    }

    /* Improve touch targets */
    .checkbox {
        width: 18px;
        height: 18px;
        margin-right: 0.75rem;
    }

    .checkbox-label {
        font-size: 1rem;
        line-height: 1.4;
    }

    .forgot-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .register-link {
        font-size: 1rem;
    }

    .btn-cancel {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* Extra small screens */
/*@media (max-width: 375px) {
    .form-side {
        padding: 0.25rem;
    }

    !*.login-container {
        padding: 1.25rem;
    }*!

    .login-title {
        font-size: 1.375rem;
    }

    .form-control {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        min-height: 48px;
    }

    .input-icon {
        left: 0.625rem;
        font-size: 0.9rem;
    }

    .password-toggle {
        right: 0.625rem;
        padding: 0.625rem;
    }

    .btn-login {
        padding: 0.875rem;
        min-height: 48px;
    }
}*/

/* Utility Classes */
.text-ktu-blue {
    color: var(--ktu-blue) !important;
}

.text-ktu-orange {
    color: var(--ktu-orange) !important;
}

.white-text {
    color: var(--ktu-white) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--ktu-orange), #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-ktu-blue {
    background-color: var(--ktu-blue) !important;
}

.bg-ktu-orange {
    background-color: var(--ktu-orange) !important;
}

.border-ktu-orange {
    border-color: var(--ktu-orange) !important;
}


/* Hover effects for dropdown items */
.dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem !important;
}

/* User dropdown hover effect */
#userDropdown:hover {
    background-color: rgba(255,255,255,0.2) !important;
}

/* Logout button hover */
.btn-outline-light:hover {
    background-color: white;
    color: #2c3e50 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Show dropdown when active */
.dropdown-menu.show {
    display: block !important;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(44, 62, 80, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .nav-item {
        width: 100%;
    }

    .btn-outline-light {
        width: 100%;
    }

    #userDropdown {
        width: 100%;
        justify-content: space-between;
    }
}

/* Smooth transitions */
@media (max-width: 991.98px) {
    .navbar-collapse {
        transition: max-height 0.3s ease-in-out;
        overflow: hidden;
    }

    .navbar-collapse:not(.show) {
        max-height: 0;
    }

    .navbar-collapse.show {
        max-height: 1000px;
    }
}

/* Desktop view - always show */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        max-height: none !important;
    }
}