/* ============================================
   LAND ACQUISITION MANAGEMENT SYSTEM - LOGIN PAGE
   Modern Design with Green/Light Blue Theme
   ============================================ */

/* Root Variables */
:root {
    --primary-green: #2d8659;
    --primary-green-dark: #1f5d3f;
    --primary-green-light: #3da372;
    --primary-green-lighter: #4fb87f;
    --green-accent: #27ae60;
    --green-light: #e8f5e9;
    --green-gradient-1: #1a5d3f;
    --green-gradient-2: #2d8659;
    --green-gradient-3: #3da372;
    --green-gradient-4: #4fb87f;
    --gradient-primary: linear-gradient(135deg, #2d8659 0%, #1f5d3f 100%);
    --gradient-primary-light: linear-gradient(135deg, #3da372 0%, #2d8659 100%);
    --gradient-background: linear-gradient(135deg, #1a5d3f 0%, #2d8659 30%, #3da372 60%, #4fb87f 100%);
    --gradient-background-alt: linear-gradient(135deg, #0d4a2c 0%, #1a5d3f 25%, #2d8659 50%, #3da372 75%, #4fb87f 100%);
    --text-white: #ffffff;
    --text-light: #e8f5e9;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --border-color: rgba(45, 134, 89, 0.2);
    --shadow-sm: 0 2px 8px rgba(31, 93, 63, 0.15);
    --shadow-md: 0 4px 20px rgba(31, 93, 63, 0.2);
    --shadow-lg: 0 8px 40px rgba(31, 93, 63, 0.3);
    --shadow-xl: 0 12px 60px rgba(31, 93, 63, 0.4);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-background-alt);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(45, 134, 89, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(61, 163, 114, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(31, 93, 63, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body.login-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.login-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-row {
    min-height: 100vh;
    margin: 0;
}

/* Left Section - Branding */
.login-left-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-left-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(61, 163, 114, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-branding {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle i {
    font-size: 60px;
    color: var(--text-white);
}

.branding-text {
    color: var(--text-white);
}

.lams-title {
    font-size: 4.5rem;
    color:white;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1;
    letter-spacing: 2px;
}

.system-title {
    font-size: 1.8rem;
    font-weight: 600;
    color:white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.system-subtitle {
    font-size: 1rem;
    color: white; 
    font-weight: 300;
    font-style: italic;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}


.branding-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Right Section - Login Form */
.login-right-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    min-height: 100vh;
    position: relative;
}

/* Header Section on Right Side */
.login-header-section {
    width: 100%;
    max-width: 480px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.header-mudra-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.mudra-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.header-logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(45, 134, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-green);
    position: absolute;
    top: 0;
    left: 0;
}

.mudra-fallback {
    display: none;
    z-index: 0;
}

/* Show fallback if image fails to load */
.header-mudra-logo .mudra-image[src=""] ~ .mudra-fallback,
.header-mudra-logo:not(:has(img[src]:not([src=""]))) .mudra-fallback {
    display: flex;
}

.header-logo-circle i {
    font-size: 30px;
    color: var(--primary-green);
}

.header-text-content {
    flex: 1;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary-green);
    margin: 0;
    opacity: 0.8;
}

.login-right-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 1;
}

.login-right-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 1;
}

.login-form-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.login-form-container {
    background: var(--text-white);
    border-radius: 10px;
    padding: 55px 45px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(45, 134, 89, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-green);
    border-right: 4px solid var(--primary-green);
    border-bottom: 4px solid var(--primary-green);
}

.login-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    z-index: 1;
}

.login-form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 134, 89, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
}

.logo-circle-mobile {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.logo-circle-mobile i {
    font-size: 40px;
    color: var(--text-white);
}

.mobile-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
}

/* Welcome Section */
.welcome-section {
    text-align: left;
    position: relative;
    z-index: 2;
    margin-bottom: 35px;
    padding-bottom: 0;
    border-bottom: none;
}

.welcome-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.welcome-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-green);
    border-radius: 1px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-bottom: 0;
    margin-top: 15px;
    line-height: 1.3;
}

/* Form Styles */
.login-form {
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--primary-green);
    z-index: 2;
    transition: all 0.3s ease;
}

.form-control-lg:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-green-dark);
    transform: translateY(-50%) scale(1.1);
}

.form-control-lg {
    width: 100%;
    padding: 16px 50px 16px 55px;
    font-size: 1rem;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    background: #f8fdf9;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.form-control-lg:hover {
    border-color: rgba(45, 134, 89, 0.3);
    background: var(--text-white);
}

.form-control-lg:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--text-white);
    box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.12), 0 4px 12px rgba(45, 134, 89, 0.1);
    transform: translateY(-1px);
}

.form-control-lg::placeholder {
    color: #999;
}

.validation-message {
    display: block;
    font-size: 0.85rem;
    margin-top: 6px;
    color: #dc3545;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: var(--primary-green);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.password-toggle-btn:hover {
    background: rgba(45, 134, 89, 0.1);
    color: var(--primary-green-dark);
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover i {
    transform: scale(1.1);
}

/* Session Checkbox */
.session-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fdf9;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #e8f5e9;
    transition: all 0.3s ease;
}

.captcha-container:focus-within {
    border-color: var(--primary-green);
    background: var(--text-white);
    box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.1);
}

.captcha-image {
    height: 45px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: opacity 0.3s ease;
}

.captcha-image:hover {
    opacity: 0.8;
}

.captcha-refresh-btn {
    background: var(--primary-green);
    color: var(--text-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.captcha-refresh-btn:hover {
    background: var(--primary-green-dark);
    transform: rotate(180deg);
}

.captcha-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8f5e9;
    border-radius: 10px;
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-align: center;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #dc3545;
    border-right: 1px solid #fecaca;
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
    color: #dc3545;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
    position: relative;
    z-index: 2;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px 30px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: var(--gradient-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-login i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(6px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .login-left-section {
        display: none;
    }

    .login-right-section {
        padding: 30px 20px;
        justify-content: center;
    }

    .login-header-section {
        margin-bottom: 20px;
    }

    .login-form-container {
        padding: 40px 30px;
    }

    .mobile-logo {
        display: block;
    }

    .lams-title {
        font-size: 3.5rem;
    }

    .system-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-form-container {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .lams-title {
        font-size: 3rem;
    }

    .system-title {
        font-size: 1.3rem;
    }

    .header-title {
        font-size: 1.1rem;
    }

    .header-subtitle {
        font-size: 0.85rem;
    }

    .captcha-container {
        flex-wrap: wrap;
    }

    .captcha-input {
        width: 100%;
        margin-top: 10px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeIn 0.6s ease-out;
}

/* Additional Enhancements */
.form-label {
    position: relative;
    z-index: 2;
    color: var(--primary-green-dark);
}

.mobile-logo {
    position: relative;
    z-index: 2;
}

/* Input focus ring enhancement */
.input-wrapper {
    position: relative;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 0 2px 2px 0;
}

.input-wrapper:focus-within::before {
    width: 4px;
}

/* Session checkbox enhancement */
.session-checkbox {
    padding: 12px;
    background: var(--green-light);
    border-radius: 10px;
    border: 1px solid rgba(45, 134, 89, 0.1);
    transition: all 0.3s ease;
}

.session-checkbox:hover {
    background: rgba(45, 134, 89, 0.05);
    border-color: rgba(45, 134, 89, 0.2);
}

/* Validation message styling */
.validation-message {
    padding-left: 5px;
    font-weight: 500;
}

/* Mobile logo enhancement */
.logo-circle-mobile {
    box-shadow: 0 4px 20px #59a9814d;
    transition: transform 0.3s ease;
}

.logo-circle-mobile:hover {
    transform: scale(1.05);
}

/* Form container inner glow */
.login-form-container {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}
