﻿
/* Reset some defaults */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

.login-error {
    color: #d8000c; /* deeper red for clarity */
    background-color: #ffd2d2; /* soft red background */
    border: 1px solid #d8000c;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 100%;
}
/* Main container */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left side - Login form */
.login-side {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Logo area - UPDATED SPACING */
.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px; /* Reduced from 80px for better balance */
    margin-bottom: 20px; /* Increased from 10px */
    padding: 5px;
    height: auto; /* Allow natural height */
}

.logo {
    max-width: 180px; /* Slightly reduced */
    height: auto;
    margin: 0;
}

.logo-title {
    text-align: center;
    color: grey;
    font-weight: bold;
}

.secondary-logo {
    height: 80px;
}

/* Login form - BALANCED SPACING */
.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to help with spacing */
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
}


.sign-in-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.sign-in-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px; /* Slightly larger for better touch targets */
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fdfbe3;
    font-size: 22px; /* Better readability on mobile */
    box-sizing: border-box;
}

.form-check-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-check-input {
    margin-right: 8px;
    min-width: 18px; /* Larger checkboxes for mobile */
    min-height: 18px;
}

.form-check-label {
    font-size: 15px;
}

.forgot-password {
    color: #0066cc;
    text-decoration: none;
    padding: 4px 0; /* Larger touch target */
    font-size: 15px;
}

.sign-in-btn {
    width: 100%;
    padding: 14px; /* Larger button for mobile */
    background-color: #345beb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
}

.create-account {
    text-align: center;
}

    .create-account a {
        color: #0066cc;
        text-decoration: none;
        padding: 4px;
        display: inline-block;
    }

/* Right side - Dashboard background */
.dashboard-side {
    width: 50%;
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    position: relative;
    overflow: hidden;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    box-sizing: border-box;
    height: 100vh;
}

.dashboard-content {
    width: 100%;
    padding: 20px;
}

.center-logo {
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 30px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.dashboard-heading {
    font-size: 60px;
    margin-top: 0px;
    margin-bottom: 5px;
    line-height: 1.1;
}

.system-description {
    display: none;
    margin-top: 30px;
    text-align: center;
}

.description-title {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.description-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.feature-highlights {
    margin-bottom: 25px;
}

.feature-item {
    align-items: center;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    backdrop-filter: blur(5px);
}
/* Now, shift each item to create the diagonal effect */
.feature-highlights .feature-item:nth-child(1) {
    /* No margin for the first item, or set a starting point */
    margin-left: 160px;
    margin-top: 0;
}

.feature-highlights .feature-item:nth-child(2) {
    /* Shift down and right */
    margin-top: 10px; /* Adjust vertical spacing */
    margin-left: 190px; /* Adjust horizontal spacing */
}

.feature-highlights .feature-item:nth-child(3) {
    /* Shift down and right more */
    margin-top: 10px; /* Cumulative vertical shift */
    margin-left: 220px; /* Cumulative horizontal shift */
}

.feature-highlights .feature-item:nth-child(4) {
    /* Shift down and right even more */
    margin-top: 10px; /* Cumulative vertical shift */
    margin-left: 250px; /* Cumulative horizontal shift */
}

/* Add more rules for additional items if you have them, maintaining the pattern */
/*
    .feature-highlights .feature-item:nth-child(5) {
        margin-top: 80px;
        margin-left: 200px;
    }
    */
.feature-icon {
    margin-right: 10px;
    font-size: 16px;
}

.feature-text {
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.announcements {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.announcements-title {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.announcement-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .announcement-item:last-child {
        border-bottom: none;
    }

.announcement-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 500;
}

.announcement-text {
    color: white;
    font-size: 12px;
    margin-top: 2px;
}

.footer-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.version-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin-bottom: 5px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin: 0;
}
/* Responsive adjustments */
/* Large screens */
@media (max-width: 1200px) {
    .dashboard-title {
        font-size: 36px;
    }

    .dashboard-heading {
        font-size: 50px;
    }
}

/* Tablets and small laptops */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column-reverse; /* Show dashboard first on tablet view */
        min-height: auto; /* Remove the fixed height constraint */
        height: auto; /* Allow natural height based on content */
    }

    .login-side {
        width: 100%;
        padding: 20px;
        height: auto;
        flex: 1; /* Make the login side take all available space */
        min-height: calc(100vh - 300px); /* Ensure it fills remaining space after dashboard */
    }

    .logo-area {
        margin-top: 30px; /* Further reduced for tablets */
        margin-bottom: 15px;
    }

    .logo {
        max-width: 160px; /* Slightly smaller for tablets */
    }

    .dashboard-side {
        width: 100%;
        min-height: 250px;
        max-height: 300px; /* Limit max height on tablet */
        border-radius: 0 0 50px 50px;
        height: auto;
    }

    .dashboard-title {
        font-size: 32px;
    }

    .dashboard-heading {
        font-size: 42px;
    }
}

@media (min-width: 768px) {
    .system-description {
        display: block; /* Visible on screens 768px and wider */
    }
}
/* Mobile phones */
@media (max-width: 576px) {
    .split-container {
        min-height: unset; /* Completely remove the min-height constraint */
        display: flex;
        flex-direction: column-reverse;
        height: 100vh; /* Full viewport height */
    }

    .login-side {
        flex: 1; /* Take all remaining space */
        display: flex;
        flex-direction: column;
        padding: 15px; /* Reduced padding */
        overflow-y: auto; /* Allow scrolling if content overflows */
        min-height: 0; /* Allow it to shrink if needed */
    }

    .logo-area {
        margin-top: 20px; /* Reduced for mobile */
        margin-bottom: 15px;
    }

    .logo {
        max-width: 130px; /* Smaller for mobile */
    }

    .login-form-container {
        padding-top: 0; /* Remove top padding to tighten spacing */
    }

    .dashboard-side {
        min-height: 180px;
        max-height: 220px; /* Limit height on mobile */
        border-radius: 0 0 30px 30px;
        flex-shrink: 0; /* Prevent the dashboard from shrinking */
    }

    .dashboard-title {
        font-size: 24px;
    }

    .dashboard-heading {
        font-size: 32px;
    }

    .sign-in-title {
        font-size: 24px;
        margin-top: 0; /* Remove top margin to tighten spacing */
    }

    .sign-in-subtitle {
        font-size: 14px;
        margin-bottom: 20px; /* Reduced spacing */
    }

    .form-check-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password {
        margin-top: 8px;
        display: inline-block;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .login-form-container {
        padding: 0 10px;
    }

    .logo-area {
        margin-top: 15px; /* Even less for very small screens */
        margin-bottom: 10px;
    }

    .logo {
        max-width: 110px; /* Even smaller for tiny screens */
    }

    .dashboard-title {
        font-size: 20px;
    }

    .dashboard-heading {
        font-size: 28px;
    }

    .dashboard-side {
        min-height: 150px; /* Even smaller height for tiny screens */
        max-height: 180px;
    }
}

