/* Login Page Styles */
body.login-page {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* Logo/Header */
.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-icon {
    font-size: 2.5rem;
}

.login-header h1 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Global reset for login page components */
.login-card * {
    box-sizing: border-box;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
    /* Critical for alignment */
}

/* ... rest of styles ... */

.admin-main-content {
    background: transparent !important;
    width: 100% !important;
    min-height: 100vh !important;
    /* Ensure it takes full height */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    /* Remove potential padding */
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Button */
.login-btn {
    width: 100%;
    background: #0ea5e9;
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.login-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(14, 165, 233, 0.4);
}

/* Hide django admin standard elements if they leak in */
#header,
.breadcrumbs,
.messagelist {
    display: none !important;
}

/* Strict Centering Chain */
.admin-main-content,
#content,
#content-main {
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
    max-width: none !important;
    position: static !important;
    /* Avoid positioning weirdness */
}

/* Ensure #content-main doesn't have weird floats */
#content-main {
    float: none !important;
}

/* Hide breadcrumbs explicit double check */
.breadcrumbs,
#header,
#user-tools {
    display: none !important;
}

/* Ensure Body is also ready */
body.login-page {
    overflow-x: hidden;
}