/* Login Page Specific Styles */

/* Hide standard layout elements */
.dashboard-shell>.top-bar,
/* Assuming the class is top-bar, need to verify */
header,
nav {
    display: none !important;
}

/* Override body/shell layout to allow full centering */
.dashboard-body,
.dashboard-shell,
.main-content,
.content-stack {
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
}

/* Reset specific overrides for the card */
.login-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    z-index: 10;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background-color: #2563eb;
    /* Primary Blue */
    color: white;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    color: #111827;
    background-color: #ffffff;
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    /* Adjust if using left icon */
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* For inputs with icons inside (not implemented in base HTML yet but ready) */
.form-control.has-icon {
    padding-left: 2.75rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
}

.password-toggle:hover {
    color: #4b5563;
}


/* Alert styling for login page */
.alert {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
    /* pulled up slightly */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-check-label {
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-primary-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background-color: #1d4ed8;
}

.btn-primary-custom:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4);
}