/* Professional Education Theme - Red & Blue (DepEd Colors) */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Wrapper */
.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Professional Red & Blue Gradient */
    background: linear-gradient(135deg, #003366 0%, #1a4f7e 50%, #c0392b 100%);
    position: relative;
    overflow: hidden;
}

/* Background Pattern Overlay */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/division-bldg.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* Content Container relative to wrapper */
.top-title,
.login-container,
.bottom-title {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

/* Top Title */
.top-title {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.top-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    /* Top border featuring the key colors */
    border-top: 5px solid #003366;
    border-bottom: 5px solid #c0392b;
}

/* Logo Section */
.logo-section {
    margin-bottom: 25px;
    margin-top: -75px;
}

.logo-circle {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 5px;
    border: 3px solid #f1c40f;
    /* Gold accent for distinction */
}

.logo-img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    border-radius: 50%;
}

/* Sign In Section */
.signin-section {
    text-align: left;
}

.signin-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003366;
    /* Primary Blue Text */
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.signin-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #c0392b;
    /* Red accent line */
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Form Styles */
.login-form {
    margin-top: 25px;
}

.input-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: all 0.3s;
}

.form-input:focus {
    background: #ffffff;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
    outline: none;
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.checkbox-input {
    margin-right: 10px;
    cursor: pointer;
    accent-color: #003366;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    /* Gradient Button: Blue to Red (Subtle) or just Blue */
    background: linear-gradient(to right, #003366, #004080);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.25);
}

.login-btn:hover {
    background: linear-gradient(to right, #002244, #003366);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
}

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

/* Bottom Title/Footer */
.bottom-title {
    margin-top: 40px;
    text-align: center;
    padding: 0 20px;
}

.bottom-title p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Responsive */
@media (max-width: 480px) {
    .top-title h3 {
        font-size: 1.4rem;
    }

    .login-card {
        padding: 30px 20px;
    }

    .logo-section {
        margin-top: -60px;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .logo-img {
        width: 85px;
        height: 85px;
    }
}