﻿/* Login Page Background Wrapper */
.login-page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
}

/* Login Box Container */
.login-box {
    width: 400px;
    max-width: 100%;
    margin: auto;
}

/* Login Logo */
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

    .login-logo img {
        margin-bottom: 10px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }

    .login-logo h4 {
        color: #fff;
        font-weight: 300;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        margin: 0;
        font-size: 1.8rem;
    }

    .login-logo b {
        font-weight: 700;
    }

/* Card Styling */
.login-box .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 0;
    overflow: hidden;
}

.login-card-body {
    padding: 30px;
    background: #fff;
}

.login-box-msg {
    margin: 0 0 20px 0;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
}

/* Input Groups */
.login-box .input-group {
    margin-bottom: 15px;
}

.login-box .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-left: none;
}

.login-box .form-control {
    border-right: none;
}

    .login-box .form-control:focus {
        border-color: #667eea;
        box-shadow: none;
    }

        .login-box .form-control:focus + .input-group-append .input-group-text {
            border-color: #667eea;
        }

/* Button Styling */
.login-box .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .login-box .btn-primary:hover:not(:disabled) {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .login-box .btn-primary:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .login-box .btn-primary:disabled {
        background: #6c757d;
        opacity: 0.65;
        transform: none;
        cursor: not-allowed;
    }

/* Footer Text */
.login-box + .text-center {
    margin-top: 20px;
}

.login-page-wrapper .text-muted {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 14px;
}

/* Alert Styling */
.login-box .alert-danger {
    border-radius: 5px;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    font-size: 14px;
}

    .login-box .alert-danger .close {
        opacity: 0.8;
    }

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Select Dropdown Styling */
.login-box select.form-control {
    appearance: auto;
}

    .login-box select.form-control:disabled {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        width: 100%;
        padding: 0 10px;
    }

    .login-card-body {
        padding: 25px 20px;
    }

    .login-logo h4 {
        font-size: 1.5rem;
    }

    .login-logo img {
        width: 60px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: fadeIn 0.5s ease-out;
}
