body, html {
    overflow: hidden;
    height: 100%;
}

body {
    background: #d3d3d3;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Align with non-index admin pages */
body { background-image: none !important; }

/* Admin gradient container + panel (self-contained, no dependency on site CSS) */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background: linear-gradient(-45deg,
        #0e1f14,
        #1b5f30,
        #2e7a49,
        #6fbf82,
        #e8f5e9
    );
    background-size: 180% 180%;
    animation: admin-gradient-animation 12s ease infinite;
}

@keyframes admin-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-panel {
    background: #fafafa;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 1600px;
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
    min-width: 800px;
}

.main-panel::before {
    content: '';
    position: absolute;
    top:25% ;
    left: 5%;
    width: 90%;
    height: 65%;
    border-radius: 15px;
    z-index: 0;
}

.header { position: relative; z-index: 10; }
.header-container {
    background: transparent;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-section { display: flex; align-items: center; gap: 12px; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-image { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 700; color: #000; font-family: 'Inter', Arial, sans-serif; }

.navigation { display: flex; gap: 30px; }
.nav-link { color: #000; text-decoration: none; font-size: 16px; font-weight: 400; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: #666; font-weight: 600; }

.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle { display: flex; align-items: center; padding: 0 5px; }
.more-icon { width: 24px; height: 24px; transition: transform 0.3s ease; }
.nav-dropdown:hover .more-icon { transform: rotate(90deg); }
.dropdown-content { display: none; position: absolute; top: 100%; right: 0; background: #fff; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 8px; padding: 8px 0; z-index: 1000; }
.nav-dropdown:hover .dropdown-content { display: block; }
.dropdown-link { color: #000; text-decoration: none; padding: 10px 20px; display: block; font-size: 14px; }
.dropdown-link:hover { background: #f5f5f5; color: #666; }

.download-section { display: flex; align-items: center; }
.download-btn { background: #fff; border: 1px solid #333; border-radius: 25px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: #000; cursor: pointer; text-decoration: none; }

.burger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; width: 32px; height: 32px; background: transparent; border: none; cursor: pointer; padding: 0; gap: 4px; }
.burger-line { width: 24px; height: 3px; background: #000; border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.burger-menu.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fafafa; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 20px; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 10; }
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu-content { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav { display: flex; flex-direction: column; gap: 15px; }
.mobile-nav-link { color: #000; text-decoration: none; font-size: 16px; font-weight: 400; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); transition: color 0.3s ease; }
.mobile-nav-link:hover { color: #666; }
.mobile-download { display: flex; justify-content: center; }
.mobile-download-btn { background: #fff; border: 1px solid #333; border-radius: 25px; padding: 12px 24px; font-size: 16px; font-weight: 500; color: #000; cursor: pointer; width: 100%; max-width: 200px; text-decoration: none; }

.content-wrapper { display: flex; flex: 1; position: relative; z-index: 3; }
.content-left { flex: 1; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 3; }
.content-right { flex: 1; display: flex; justify-content: center; align-items: center; padding-right: 50px;}

.phone-screen { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    height: 100%; 
}

.phone-image { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    display: block; 
    scale: 1;
}

.bg-decorations { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.bg-curve-1 { position: absolute; top: 20%; left: 10%; width: 200px; height: 200px; border: 2px solid rgba(155, 185, 164, 0.2); border-radius: 50%; }
.bg-curve-2 { position: absolute; top: 60%; right: 15%; width: 150px; height: 150px; border: 1px solid rgba(93, 140, 106, 0.3); border-radius: 50%; }
.bg-curve-3 { position: absolute; bottom: 10%; left: 20%; width: 100px; height: 100px; border: 1px solid rgba(62, 119, 79, 0.2); border-radius: 50%; }



.admin-login-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
}

.admin-login-label {
    position: absolute;
    top: 50px;
    left: 50px;
    color: #888;
    font-size: 12px;
}

.login-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: #216a39;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    height: 60px;
    z-index: 1000;
    margin-bottom: 0;
    padding: 10px 0;
}

.back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    cursor: pointer;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.back-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
}

.arrow-left {
    font-size: 24px;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
}

.login-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    width: 360px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #222;
}

.login-form input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #e0e0e0;
    font-size: 16px;
    margin-bottom: 8px;
    color: #444;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 50px;
    margin-bottom: 8px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #666;
    border-radius: 6px;
    transition: color 0.3s, background 0.2s;
}

.password-toggle:hover {
    color: #206233;
    background: rgba(32, 98, 51, 0.1);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.login-btn {
    background: #206233;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
    background: #174b25;
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn:disabled {
    background: #888;
    cursor: not-allowed;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 10px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    display: none;
    width: 100%;
    box-sizing: border-box;
}



/* Responsive tweaks for header/menu */
/* Password Strength Indicator */
.password-strength-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.password-strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bar {
    width: 20px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-bar.active {
    background: #dc3545; /* Red for weak */
}

.strength-bar.medium {
    background: #ffc107; /* Yellow for medium */
}

.strength-bar.strong {
    background: #28a745; /* Green for strong */
}

.strength-text {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.medium {
    color: #ffc107;
}

.strength-text.strong {
    color: #28a745;
}

/* Password Requirements */
.password-requirements {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 12px;
}

.requirement-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.requirement-item.valid {
    color: #28a745;
}

.requirement-icon {
    margin-right: 6px;
    font-size: 10px;
    transition: color 0.3s ease;
}

.requirement-item.valid .requirement-icon {
    color: #28a745;
}

/* Enhanced Responsive Design */
@media screen and (max-width: 1400px) {
    .main-panel {
        width: 60%;
        max-width: 1400px;
    }
    
    .content-left {
        padding: 50px 40px;
    }
}

@media screen and (max-width: 1200px) {
    .main-panel {
        width: 70%;
        max-width: 1200px;
        min-width: 600px;
    }
    
    .content-left {
        padding: 40px 30px;
    }
    
    .phone-image {
        max-width: 85%;
    }
}

@media screen and (max-width: 992px) {
    
    .main-panel {
        width: 85%;
        max-width: 900px;
        min-width: 500px;
    }
    
    .content-left {
        padding: 30px 25px;
    }
    
    .content-wrapper {
        flex-direction: column-reverse;
    }
    
    .content-right {
        order: -1;
        padding: 20px;
        min-height: 300px;
    }
    
    .phone-image {
        max-width: 70%;
        max-height: 280px;
    }
}

@media screen and (max-width: 1024px) {
    .content-left { padding: 40px 30px; }
    .navigation { gap: 20px; }
}

@media screen and (max-width: 768px) {
    .landing-container {
        padding: 20px 10px;
    }
    
    .main-panel { 
        border-radius: 16px; 
        min-height: auto; 
        width: 95%;
        max-width: none;
        min-width: auto;
    }
    
    .content-wrapper { 
        flex-direction: column-reverse; 
    }
    
    .content-left { 
        padding: 30px 20px; 
        text-align: center; 
    }
    
    .content-right {
        padding: 15px;
        min-height: 250px;
    }
    
    .phone-image {
        max-width: 60%;
        max-height: 200px;
    }
    
    .navigation { display: none; }
    .burger-menu { display: flex; margin-right: 20px; }
    .login-form-container { margin-top: 10px; width: 100%; max-width: 380px; }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
    animation: modalPop 280ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes modalPop {
    0% { transform: scale(0.92); }
    60% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .modal { transition: none; }
    .modal-content { transition: none; }
    .modal.show .modal-content { animation: none; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
}

.modal-body label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #222;
    display: block;
    font-weight: 500;
}

.modal-body input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-size: 16px;
    margin-bottom: 16px;
    color: #444;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-body input:focus {
    outline: none;
    border-color: #206233;
    background: #ffffff;
}

.modal-body input::placeholder {
    color: #999;
}
.modal-body button {
    width: 100%;
}
.modal-body button:hover {
    background: #206233;
    color: #fff;
}
.modal-body button:active {
    transform: translateY(1px);
}

/* OTP Input Styles */
.otp-inputs {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    justify-content: center;
}

.otp-input {
    width: 48px !important;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px;
    background: #fafafa !important;
    margin-bottom: 0 !important;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: #206233 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(32, 98, 51, 0.1);
}

.otp-input:not(:placeholder-shown) {
    border-color: #206233;
    background: #ffffff;
}

.otp-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    flex-direction: column;
}

.resend-btn {
    background: none;
    border: none;
    color: #206233;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.resend-btn:hover {
    background: rgba(32, 98, 51, 0.1);
    color: #174b25;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

.resend-btn:disabled:hover {
    background: none;
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    margin-bottom: 16px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-message p {
    color: #4caf50;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.cancel-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.cancel-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Modal Error Message Styles */
.modal-body .error-message {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.modal-body .error-message.show {
    display: block;
}

/* Responsive Modal Styles */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px 20px;
    }
    
    .otp-inputs {
        gap: 8px;
    }
    
    .otp-input {
        width: 40px !important;
        height: 40px;
        font-size: 16px;
    }
    
    .otp-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .resend-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .landing-container {
        padding: 15px 5px;
    }
    
    .main-panel {
        width: 98%;
        border-radius: 12px;
    }
    
    .content-left {
        padding: 20px 15px;
    }
    
    .content-right {
        padding: 10px;
        min-height: 200px;
    }
    
    .phone-image {
        max-width: 50%;
        max-height: 150px;
    }
    
    .logo-image { width: 28px; height: 28px; }
    .brand-name { font-size: 14px; }
    .login-form-container { padding: 24px 18px; }
    
    .modal-content {
        width: 98%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 16px 16px 0 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 0 16px 16px 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .otp-inputs {
        gap: 6px;
    }
    
    .otp-input {
        width: 36px !important;
        height: 36px;
        font-size: 14px;
    }
}


