/* Modern Login Page Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body.login-page {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login box container */
.login-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Logo section */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 28px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-logo img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Main login form container */
.login-box-body {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* Welcome message */
.login-box-msg {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.has-feedback {
    position: relative;
}

/* Input fields */
.form-control {
    height: 50px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 45px 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    background-color: white;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Form control feedback icons */
.form-control-feedback {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 8px;
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
    background: linear-gradient(135deg, #1a3461 0%, #244680 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(42, 82, 152, 0.3);
}

/* Alert messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Links */
a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.text-center a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.text-center a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Row and column adjustments */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col-xs-4, .col-xs-6, .col-xs-8 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive design */
@media (max-width: 480px) {
    body.login-page {
        padding: 10px;
    }
    
    .login-box-body {
        padding: 30px 20px;
    }
    
    .login-logo {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-control {
        height: 45px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 45px;
        font-size: 14px;
    }
}

/* Animation for form appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for button */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Focus states for accessibility */
.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.3);
    outline: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}