:root {
    --agra-green: #1e4d2b;
    --agra-dark: #0f2d18;
    --agra-light-green: #28a745;
    --text-light: #e8f5e8;
    --form-border: #d2d6da;
    --button-green: #1e4d2b;
    --button-hover: #163d22;
    --guest-bg: #e9ecef;
    --guest-border: #dee2e6;
    --text-muted: #6c757d;
    --warning-bg: #ffc107;
    --warning-text: #212529;
    --danger-bg: #dc3545;
    --danger-text: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    overflow-x: hidden;
    font-size: 1.05rem;          /* slightly larger base font */
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--agra-green) 0%, var(--agra-dark) 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(15,45,24,0.6) 100%),
        rgba(30, 77, 43, 0.3);
    z-index: 1;
}

.left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/csims/agri-field-blur.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px) grayscale(20%) brightness(0.8);
    opacity: 0.15;
    z-index: 0.5;
}

.africa-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

.video-bg.visible {
    opacity: 0.3;
}

.left-content {
    z-index: 2;
    position: relative;
    text-align: center;
    padding: 2rem;
}

.left-content h1 {
    font-size: 2.8rem;           /* was 2rem → noticeably larger */
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    letter-spacing: 0.8px;
    line-height: 1.15;
}

.left-content h2 {
    font-size: 5.2rem;           /* was 2.5rem → much bigger "PDOMS" title */
    font-weight: 900;
    margin: 0;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
    letter-spacing: -1px;
    line-height: 0.92;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2.5rem;
    background: white;
    position: relative;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.logo {
    width: 160px;                /* was 120px → larger logo */
    height: auto;
    margin-bottom: 2.5rem;
}

.alert {
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 1rem;             /* was 0.875rem */
    padding: 1rem 1.25rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.4rem;
    width: 100%;
    max-width: 360px;            /* slightly wider comfortable area */
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
    font-size: 1.4rem;           /* larger icons */
    transition: color 0.3s ease;
}

.form-control {
    padding: 0.9rem 1rem 0.9rem 3.5rem;
    border: 1px solid var(--form-border);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-size: 1.15rem;          /* was 1rem → clearly larger */
    height: 3.1rem;
}

.form-control:focus {
    border-color: var(--agra-green);
    box-shadow: 0 0 0 0.25rem rgba(30, 77, 43, 0.18);
    outline: none;
}

.input-icon:focus-within {
    color: var(--agra-green);
}

.form-check-label {
    font-size: 1.1rem;
}

select.form-control {
    font-size: 1.1rem;
    padding-left: 3.5rem;
}

.forgot-link {
    display: block;
    text-align: right;
    color: var(--agra-green);
    text-decoration: none;
    font-size: 1rem;             /* was 0.875rem */
    margin: 0.6rem 0 1.6rem 0;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--agra-dark);
    text-decoration: underline;
}

.btn-info.btn-sm {
    background: var(--agra-light-green);
    border: 1px solid var(--agra-light-green);
    color: white;
    padding: 0.4rem 0.9rem;
    font-size: 1rem;             /* was 0.875rem */
    border-radius: 6px;
}

.btn-info.btn-sm:hover {
    background: var(--agra-green);
    border-color: var(--agra-green);
}

.btn-login {
    background: var(--agra-green);
    border: none;
    color: white;
    width: 100%;
    max-width: 360px;
    padding: 0.95rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.25rem;          /* was 1rem → prominent login button */
    margin-bottom: 1.2rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.btn-login:hover:not(:disabled) {
    background: var(--button-hover);
    box-shadow: 0 4px 10px rgba(30,77,43,0.25);
}

.btn-login:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-guest {
    background: var(--guest-bg);
    border: 1px solid var(--guest-border);
    color: var(--text-muted);
    width: 100%;
    max-width: 360px;
    padding: 0.95rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.2rem;           /* larger guest button */
    margin-bottom: 1.8rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-guest:hover {
    background: #f8f9fa;
    border-color: var(--agra-green);
    color: var(--agra-green);
}

.request-link {
    color: var(--agra-green);
    text-decoration: none;
    font-size: 1.05rem;          /* was 0.875rem */
    display: block;
    text-align: center;
    margin-bottom: 2.2rem;
    font-weight: 500;
}

.request-link:hover {
    color: var(--agra-dark);
    text-decoration: underline;
}

.request-link.btn {
    background: #ffc107;
    border: 1px solid #ffc107;
    color: #212529;
    padding: 0.95rem;
    border-radius: 6px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.request-link.btn:hover,
.btn.btn-warning {
    background: #e0a800;
    border-color: #e0a800;
}

.btn.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    font-size: 1.2rem;
}

.btn.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.text-center[style*="max-width"] {
    font-size: 1rem;             /* was 0.875rem or smaller */
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;          /* was 0.75rem → more readable */
    width: 100%;
    max-width: 360px;
    margin-top: auto;
    padding-top: 2.5rem;
    border-top: 1px solid #eee;
    line-height: 1.5;
}

.footer .powered {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 1.1rem;
}

.spinner-border-sm {
    color: white;
    width: 1.2rem;
    height: 1.2rem;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
    color: var(--agra-dark);
}

.loader-content .spinner-border {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--agra-green);
    margin-bottom: 1.2rem;
}

.loader-text {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Language selector */
.form-group select.form-control {
    padding-left: 3.5rem;
    font-size: 1.15rem;
}

/* Modal styles remain mostly unchanged */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-bg), #e0a800) !important;
    color: var(--warning-text);
    border-bottom: none;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, var(--danger-bg), #c82333) !important;
    color: var(--danger-text);
    border-bottom: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .alert {
    margin-bottom: 1rem;
    border-radius: 4px;
}

.modal-body a {
    color: var(--agra-green);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 0 0 8px 8px;
}

/* Animations unchanged */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { transform: translateX(-20px); opacity: 0.8; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0.8; } to { transform: translateX(0); opacity: 1; } }

.login-wrapper > * { animation: fadeIn 0.8s ease-out; }
.left-panel { animation: slideInLeft 1s ease-out; }
.right-panel { animation: slideInRight 1s ease-out; }
.form-group { animation: fadeIn 0.5s ease-out; }
.logo { animation: fadeIn 1.2s ease-out; }

/* Mobile adjustments – fonts still readable */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    .left-panel {
        min-height: 35vh;
        padding: 1.5rem;
    }
    .right-panel {
        min-height: 65vh;
        padding: 2.5rem 1.8rem;
    }
    .left-content h1 {
        font-size: 2.1rem;
    }
    .left-content h2 {
        font-size: 3.8rem;
    }
    .logo {
        width: 140px;
    }
    .form-group {
        max-width: 100%;
    }
    .btn-login, .btn-guest, .request-link.btn {
        max-width: 100%;
        font-size: 1.15rem;
        padding: 0.9rem;
    }
}