/* Login Page Styling */
.login-container {
    padding: 20px 0;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    width: 380px;
    max-width: 100%;
}

.login-logo-img {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-image {
    max-width: 150px;
    height: auto;
}

.login-logo {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: #343a40;
}

.login-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-card-body {
    padding: 2.5rem;
}

/* Make form inputs stand out better */
.login-form .input-group {
    margin-bottom: 1.8rem;
}

.login-form .form-control {
    padding: 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 4px 0 0 4px;
    background-color: #fff;
    font-size: 1rem;
    height: auto;
    transition: border-color 0.15s ease-in-out;
}

.login-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 0.85rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.forgot-link, .back-link {
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover, .back-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.login-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.login-button:hover {
    background-color: #0069d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 105, 217, 0.3);
}

/* Make buttons consistent when used as links */
a.login-button {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    padding: 0.6rem 1.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-block;
}

a.login-button:hover {
    background-color: #0069d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 105, 217, 0.3);
    color: white;
    text-decoration: none;
}

/* Alert styling consistent with UserLogsView.css */
.alert {
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: opacity 0.3s ease;
    line-height: 1.4;
}

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

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

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

.alert .close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.8rem;
}

.alert .close-btn:hover {
    opacity: 1;
}

/* Forgot Password Page Specific Styles */
.instruction-text {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.confirmation-message {
    color: #495057;
    padding: 1rem 0;
}

.email-sent-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Success and Error icons */
.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

/* Password strength indicators */
.password-strength {
    height: 5px;
    margin: 10px 0;
    border-radius: 2px;
    background-color: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak {
    width: 33%;
    background-color: #dc3545;
}

.strength-medium {
    width: 66%;
    background-color: #ffc107;
}

.strength-strong {
    width: 100%;
    background-color: #28a745;
}

.password-feedback {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* COMPLETE REMOVAL OF NAV AND SIDEBAR */
/* Hide ALL navigation elements */
header, 
nav, 
.main-header,
.main-sidebar,
aside,
.navbar,
.sidebar,
.nav,
.navbar-nav {
    display: none !important;
    visibility: hidden !important;
}

/* Reset body and html styling to ensure full-page login */
html, 
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Override ANY potential navbar/sidebar margins */
body > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    width: 100%;
}

/* Add subtle branding element */
.login-wrapper::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card-body {
        padding: 1.75rem;
    }
    
    .login-logo {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.forgot-link.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}