﻿:root {
    --primary-color: #094791;
    --primary-dark: #073a7a;
    --secondary-color: #ff9800;
    --secondary-dark: #e68900;
    --accent-color: #3F06FF;
    --light-accent: #8EDDBE;
    --background-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    padding-top: 70px; /* Space for fixed header */
    overflow: hidden;
}

/* Fixed Header */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-banner {
    max-width: 612px;
    height: 80px;
    object-fit: cover;
    object-position: center;
}

/* Main Content */
.main-container {
    background-image: url(../Images/userlogin.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
}

.login-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
}

/* Login Card */
.login-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 30px;
    text-align: center;
}

    .login-header h4 {
        font-weight: 600;
        font-size: 1.8rem;
        margin: 0;
        letter-spacing: 0.5px;
    }

.login-body {
    padding: 35px 30px;
}

/* New User Button */
.new-user-link {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px;
    border: 1px solid #094791;
    border-radius: 5px;
    transition: all 0.3s;
}

    .new-user-link:hover {
        background-color: #094791;
        color: white;
    }

    .new-user-link:active {
        transform: translateY(-1px);
    }

    .new-user-link i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.3s;
    height: 50px;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(9, 71, 145, 0.15);
    }

.input-group-text {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px 0 0 8px;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 16px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(9, 71, 145, 0.3);
}

    .btn-login:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(9, 71, 145, 0.4);
    }

    .btn-login:active {
        transform: translateY(-1px);
    }

    .btn-login i {
        margin-right: 10px;
    }

/* Guidelines Box */
.guideline-box {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .guideline-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

.guideline-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.guideline-body {
    padding: 30px;
}

.guideline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .guideline-list li {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease;
    }

        .guideline-list li:hover {
            transform: translateX(5px);
        }

        .guideline-list li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .guideline-list li a {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            transition: color 0.3s ease;
        }

            .guideline-list li a:hover {
                color: var(--primary-color);
                text-decoration: none;
            }

            .guideline-list li a i {
                color: var(--secondary-color);
                margin-right: 15px;
                font-size: 1.3rem;
                width: 24px;
                text-align: center;
            }

/* Responsive Design */
@media (max-width: 992px) {
    .login-header h4 {
        font-size: 1.6rem;
    }

    .login-body, .guideline-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        overflow: auto;
    }


    .main-container {
        padding: 20px 0;
    }

    .login-card, .guideline-box {
        margin-bottom: 25px;
    }

    .login-header, .guideline-header {
        padding: 20px;
    }

        .login-header h4, .guideline-header {
            font-size: 1.4rem;
        }

    .new-user-link, .btn-login {
        padding: 14px;
    }

    .header-banner {
        height: 60px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
        overflow: auto;
    }


    .login-body, .guideline-body {
        padding: 20px;
    }

    .login-header h4, .guideline-header {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 12px 14px;
        height: 46px;
    }

    .guideline-list li a {
        font-size: 1rem;
    }
}

/* Animation for new user button */
@keyframes blink {
    0%, 100% {
        background-color: #3F06FF;
    }

    50% {
        background-color: #8EDDBE;
    }
}

.new-user-link {
    animation: blink 2.5s infinite;
}

/* Custom spacing */
.form-group {
    margin-bottom: 25px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
}
