* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #e8eef7 0%, #d4dce9 50%, #c8d3e4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.header {
    background: linear-gradient(to right, #1a237e, #283593, #3949ab);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid #5c6bc0;
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo Images */
.logo-left img,
.logo-right img {
    height: 100px;
    border-radius: 50%;
}

.department-title {
    flex: 1;
    text-align: center;
    color: white;
    padding: 0 30px;
}

.department-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.department-title p {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
}

/* Header Container Section */
.header-container {
    width: 100%;
    margin: 0;
    padding: 30px 20px;
}

.header-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 1800px;
    margin: 0 auto;
}

.header-box h3 {
    color: #1a237e;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.header-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-box li {
    padding: 12px 15px;
    margin: 8px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    border-radius: 5px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-box li:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1840px;
    margin: 20px auto 40px;
    padding: 0 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Login Form Section */
.login-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-section h2 {
    color: #1e3c72;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-forgot {
    background: #f0f0f0;
    color: #333;
}

.btn-forgot:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
}

.user-manual-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.user-manual-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
}

.user-manual-link a:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.user-manual-link a::before {
    content: "📥";
    font-size: 18px;
}

/* Instructions Section */
.instructions-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.instructions-section h2 {
    color: #1e3c72;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.instruction-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.instruction-item h3 {
    color: #1e3c72;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.instruction-item p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.instruction-item ul {
    margin: 10px 0 0 20px;
    color: #555;
}

.instruction-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer a {
    color: #a8d8ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Error and Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 2px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 2px solid #cfc;
}

.alert-info {
    background: #eef;
    color: #33c;
    border: 2px solid #ccf;
}

.error-message {
    display: block;
    color: #c33;
    font-size: 13px;
    margin-top: 5px;
}

.required {
    color: #c33;
}

/* Captcha Styles */
.captcha-container {
    margin-bottom: 10px;
}

/* .captcha-image {
    border: 3px solid #667eea;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
} */

.btn-refresh {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 14px;
}

.float-right {
    float: right;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.float-right:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .department-title h1 {
        font-size: 22px;
    }

    .department-title p {
        font-size: 14px;
    }

    .navbar-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-left img,
    .logo-right img {
        height: 80px;
    }

    /* Additional mobile responsiveness */
    .header-box {
        padding: 25px 20px;
    }

    .login-section,
    .instructions-section {
        padding: 30px 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 20px 15px;
    }

    .main-content {
        padding: 0 15px;
    }

    .header-box {
        padding: 20px 15px;
    }

    .login-section,
    .instructions-section {
        padding: 25px 15px;
    }

    .department-title h1 {
        font-size: 18px;
    }

    .department-title p {
        font-size: 13px;
    }

    .logo-left img,
    .logo-right img {
        height: 60px;
    }
}
.captcha-container{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (min-width: 768px){
    .captcha-container{
        flex-wrap: nowrap;
    }
}

.captcha-container{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (min-width: 768px){
    .captcha-container{
        flex-wrap: nowrap;
    }
}

/* ✅ captcha image size fix */
.captcha-image{
    width: 220px;          /* increase width */
    height: 60px;          /* increase height */
    flex-shrink: 0;
    object-fit: fill;      /* IMPORTANT: make it fully visible */
    border: 3px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* refresh */
.btn-refresh{
    height: 60px;
    padding: 0 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* input */
.captcha-input{
    flex: 1;
    min-width: 160px;
    height: 60px;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 3px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}



.header-box ul li a{
    text-decoration: none;
    color: #000;
    display: block;
    padding: 6px 0;
}

.header-box ul li a:hover{
    color: #007bff;
}

/* forgot-password page only */
.forgot-page .main-content{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 70vh;   /* center vertically */
    grid-template-columns: none !important;
}

.forgot-page .login-section{
    width: 100%;
    max-width: 550px;  /* set form width */
}