/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0B6B3A 0%, #0e7d45 50%, #10904f 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    touch-action: manipulation;
}

@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available;
    }
}

body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    left: -250px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* ===== MAIN CONTAINER ===== */
.login-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1100px;
    width: 95%;
    display: grid;
    grid-template-columns: 45% 55%;
    position: relative;
    z-index: 1;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    touch-action: manipulation;
    height: auto;
    max-height: 95vh;
   
  
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LEFT PANEL ===== */
.login-left {
    background: linear-gradient(135deg, #0B6B3A 0%, #0e7d45 100%);
    padding: 70px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -80px;
    left: -80px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -60px;
    right: -60px;
}

.logo-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.recycle-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.recycle-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.recycle-icon .login-logo,
.login-logo {
    max-width: 72%;
    max-height: 72%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.login-left h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-left p {
    font-size: 15px;
    text-align: center;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 320px;
}

/* ===== FEATURES SECTION ===== */
.features {
    margin-top: 50px;
    width: 100%;
    max-width: 350px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(5px);
}

.feature-icon {
    width: 22px;
    height: 22px;
    margin-right: 16px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ===== RIGHT PANEL ===== */
.login-right {
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-header {
    margin-bottom: 45px;
}

.login-header h2 {
    color: #0B6B3A;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #6b7280;
    font-size: 15px;
    font-weight: 400;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #0B6B3A;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 1;
}

.input-icon svg {
    width: 100%;
    height: 100%;
    fill: #7dd3a0;
    opacity: 0.8;
}

.form-control {
    width: 100%;
    padding: 15px 16px 15px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    color: #374151;
    font-weight: 400;
    touch-action: manipulation;
    min-height: 50px;
    font-size: 16px;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: #7dd3a0;
    background: white;
    box-shadow: 0 0 0 4px rgba(125, 211, 160, 0.15);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle svg {
    width: 100%;
    height: 100%;
    fill: #6b7280;
    transition: fill 0.3s;
}

.password-toggle:hover svg {
    fill: #7dd3a0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #7dd3a0;
}

.remember-me label {
    cursor: pointer;
    color: #4b5563;
    font-weight: 500;
}

.forgot-password {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #ea580c;
}

/* ===== BUTTONS ===== */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0B6B3A 0%, #0e7d45 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(11, 107, 58, 0.3);
    letter-spacing: 0.3px;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 107, 58, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    position: relative;
    color: transparent !important;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.register-link {
    text-align: center;
    margin-top: 28px;
    color: #6b7280;
    font-size: 14px;
}

.register-link a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #ea580c;
}

/* ===== ALERT STYLES ===== */
.alert {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
}

.alert-icon {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.alert-content {
    flex: 1;
    color: white;
    line-height: 1.5;
}

.alert-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-left-color: #991b1b;
}

.alert-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-left-color: #065f46;
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-left-color: #b45309;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-left-color: #1d4ed8;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0B6B3A 0%, #0e7d45 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(11, 107, 58, 0.3);
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    color: #0B6B3A;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.modal-header p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
    min-height: 50px;
}

.modal-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.modal-btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #0B6B3A 0%, #0e7d45 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(11, 107, 58, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 107, 58, 0.4);
}

.modal-btn:active {
    transform: translateY(0);
}

/* ===== SUPPORT SECTION HORIZONTAL - UKURAN BESAR ===== */
.support-section {
    margin-top: 40px;
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.support-label {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.support-label span {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Container Logo - PERBESAR UKURAN */
.support-logos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.2);
    min-height: 90px;
}

.logo-item {
    display: flex;
    flex-direction: column; /* Ubah dari row ke column */
    align-items: center; /* Center secara horizontal */
    text-align: center; /* Center teks */
    gap: 8px; /* Kurangi gap karena sekarang vertikal */
    flex: 1;
    min-width: 0;
    height: 100%;
}

/* Logo Image - PERBESAR UKURAN */
.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
    align-items: center; /* Center teks */
    width: 100%; /* Ambil full width */
}

/* Teks Logo - PERBESAR UKURAN */
.logo-main-text {
    font-size: 14px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    margin-bottom: 2px; /* Kurangi margin bawah */
}

.logo-sub-text {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    letter-spacing: 0.4px;
}

.logo-separator {
    width: 2px;
    height: 120px; /* Meningkatkan tinggi dari 90px ke 120px */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 20%,
        rgba(255, 255, 255, 0.5) 80%,
        transparent 100%
    );
    margin: 0 8px;
}

/* Responsive untuk semua ukuran - Perbaikan layout vertikal */
@media (min-width: 1440px) {
    .support-section {
        max-width: 420px;
        margin-top: 50px;
    }
    
    .support-logos-row {
        padding: 25px;
        gap: 25px;
        min-height: 100px;
        border-radius: 20px;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .logo-main-text {
        font-size: 16px;
    }
    
    .logo-sub-text {
        font-size: 11px;
    }
    
    .logo-separator {
        height: 80px; /* Meningkatkan tinggi dari 55px ke 80px */
    }
}

@media (max-width: 1024px) {
    .support-section {
        max-width: 360px;
        margin-top: 35px;
    }
    
    .support-logos-row {
        padding: 18px;
        gap: 18px;
        min-height: 85px;
        border-radius: 16px;
    }
    
    .logo-img {
        width: 55px;
        height: 55px;
    }
    
    .logo-main-text {
        font-size: 13px;
    }
    
    .logo-sub-text {
        font-size: 9.5px;
    }
    
    .logo-separator {
        height: 70px; /* Meningkatkan tinggi dari 45px ke 70px */
    }
}

/* Mobile Tablet (768px) */
@media (max-width: 768px) {
    .support-logos-row {
        flex-direction: row !important;
        gap: 15px;
        padding: 16px;
        min-height: 80px;
        border-radius: 15px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .support-section {
        max-width: 320px;
        margin-top: 30px;
        width: 100%;
    }
    
    .logo-item {
        gap: 6px; /* Kurangi gap untuk mobile */
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .logo-main-text {
        font-size: 12px;
        letter-spacing: 0.4px;
    }
    
    .logo-sub-text {
        font-size: 9px;
    }
    
    .logo-separator {
        height: 60px; /* Meningkatkan tinggi dari 40px ke 60px */
        width: 1.5px;
        margin: 0 6px;
    }
    
    .support-label span {
        padding: 7px 18px;
        font-size: 11px;
    }
}

/* Mobile Medium (480px) */
@media (max-width: 480px) {
    .support-logos-row {
        padding: 14px;
        gap: 12px;
        min-height: 75px;
        border-radius: 14px;
    }
    
    .support-section {
        max-width: 300px;
        margin-top: 25px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
        padding: 7px;
    }
    
    .logo-main-text {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .logo-sub-text {
        font-size: 8.5px;
    }
    
    .logo-separator {
        height: 55px; /* Meningkatkan tinggi dari 38px ke 55px */
        margin: 0 5px;
    }
    
    .support-label {
        margin-bottom: 12px;
    }
    
    .support-label span {
        padding: 6px 16px;
        font-size: 10px;
    }
}

/* Mobile Small (360px) */
@media (max-width: 360px) {
    .support-logos-row {
        padding: 12px;
        gap: 10px;
        min-height: 70px;
        border-radius: 12px;
    }
    
    .support-section {
        max-width: 280px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .logo-main-text {
        font-size: 10px;
    }
    
    .logo-sub-text {
        font-size: 8px;
    }
    
    .logo-separator {
        height: 50px; /* Meningkatkan tinggi dari 35px ke 50px */
        width: 1px;
        margin: 0 4px;
    }
    
    .support-label span {
        padding: 5px 14px;
        font-size: 9px;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .support-section {
        max-width: 300px;
        margin-top: 20px;
    }
    
    .support-logos-row {
        padding: 12px;
        gap: 10px;
        min-height: 65px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-main-text {
        font-size: 10px;
    }
    
    .logo-sub-text {
        font-size: 8px;
    }
    
    .logo-separator {
        height: 50px; /* Meningkatkan tinggi dari 35px ke 50px */
    }
}

/* Pastikan teks tidak overflow dan center */
.logo-text {
    overflow: hidden;
    width: 100%;
}

.logo-main-text,
.logo-sub-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
}

/* Tambahan untuk tampilan mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .support-logos-row {
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }
    
    .logo-item {
        gap: 4px;
    }
    
    .logo-img {
        width: 44px;
        height: 44px;
    }
    
    .logo-main-text {
        font-size: 11px;
    }
    
    .logo-sub-text {
        font-size: 8.5px;
    }
}

/* Tambahan untuk mobile extra small */
@media (max-width: 360px) and (orientation: portrait) {
    .support-logos-row {
        padding: 10px;
        gap: 8px;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .logo-main-text {
        font-size: 9px;
    }
    
    .logo-sub-text {
        font-size: 7.5px;
    }
}

/* Pencegahan wrapping dan overflow */
.support-logos-row {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.logo-item {
    flex-shrink: 0 !important;
}

.logo-text {
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

/* Animasi masuk */
.support-section {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-logos-row {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== TABLET - SMALL (820px) ===== */
@media (max-width: 820px) {
    body {
        padding: 12px;
    }

    .login-container {
        max-width: 500px;
        border-radius: 20px;
    }

    .login-left {
        padding: 45px 40px;
    }

    .login-left h1 {
        font-size: 28px;
    }

    .recycle-icon {
        width: 85px;
        height: 85px;
        margin-bottom: 20px;
    }

    .recycle-icon svg {
        width: 48px;
        height: 48px;
    }

    .login-right {
        padding: 45px 40px;
    }

    .form-group {
        margin-bottom: 22px;
    }
    
   .support-section {
        margin-top: 25px;
        max-width: 280px;
    }
    
    .support-label {
        margin-bottom: 14px;
    }
    
    .support-label span {
        font-size: 10px;
        padding: 5px 16px;
    }
    
    .support-logos {
        padding: 12px;
        gap: 12px;
    }
    
    .support-logo {
        width: 45px;
        height: 45px;
        padding: 5px;
    }
}

/* ===== MOBILE - LARGE (768px) PORTRAIT ===== */
@media (max-width: 768px) and (orientation: portrait) {
    html, body {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
    
    body {
        padding: 10px;
        align-items: center;
        justify-content: center;
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
    }

    .login-container {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        max-height: 95dvh;
        overflow-y: auto;
    
        border-radius: 18px;
        margin: 0 auto;
        position: relative;
    }

    .login-left {
        padding: 40px 35px !important;
        order: 1;
    }

    .login-left h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .login-left p {
        font-size: 13px;
        max-width: 300px;
    }

    .features {
        margin-top: 35px;
        max-width: 320px;
    }

    .feature-item {
        padding: 13px 16px;
        margin-bottom: 15px;
    }

    .feature-icon {
        width: 20px;
        height: 20px;
        margin-right: 14px;
    }

    .feature-item span {
        font-size: 13px;
    }

    .login-right {
        padding: 40px 35px !important;
        order: 2;
    }

    .login-header {
        margin-bottom: 35px;
    }

    .login-header h2 {
        font-size: 26px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 9px;
    }

    .form-control {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-login {
        padding: 15px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .support-section {
        margin-top: 25px;
        max-width: 270px;
    }
    
    .support-label {
        margin-bottom: 12px;
    }
    
    .support-label span {
        font-size: 10px;
        padding: 5px 15px;
        letter-spacing: 0.8px;
    }
    
    .support-logos {
        padding: 12px;
        gap: 11px;
        border-radius: 12px;
    }
    
    .support-logo-item {
        gap: 11px;
    }
    
    .support-logo {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 8px;
    }
    
    .support-title {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
    .support-subtitle {
        font-size: 9px;
    }
    
    .support-tagline {
        font-size: 7px;
        margin-top: 3px;
    }

}

/* ===== MOBILE - MEDIUM (480px) PORTRAIT ===== */
@media (max-width: 480px) and (orientation: portrait) {
    html, body {
        position: fixed;
        overflow: hidden;
    }
    
    body {
        padding: 8px;
        align-items: center;
        justify-content: center;
        height: 100vh;
        height: 100dvh;
    }

    .login-container {
        max-width: 100%;
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
      
        border-radius: 16px;
        margin: 0 auto;
    }

    .login-left {
        padding: 30px 25px !important;
    }

    .login-left h1 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .login-left p {
        font-size: 12px;
        line-height: 1.4;
    }

    .recycle-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .recycle-icon svg {
        width: 32px;
        height: 32px;
    }

    .features {
        margin-top: 20px;
    }

    .login-right {
        padding: 30px 25px !important;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-header h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .login-header p {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .input-icon {
        left: 12px;
        width: 17px;
        height: 17px;
    }

    .form-control {
        padding: 12px 12px 12px 40px;
        font-size: 16px;
        border-radius: 10px;
        min-height: 44px;
    }

    .password-toggle {
        right: 12px;
        width: 20px;
        height: 20px;
        min-width: 44px;
        min-height: 44px;
    }

    .btn-login {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
        min-height: 44px;
    }

    /* Alert adjustments */
    .alert {
        padding: 12px 14px;
        font-size: 12px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .alert-icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    /* Modal adjustments */
    .modal-content {
        padding: 28px 24px;
        border-radius: 16px;
        width: 94%;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .modal-header h3 {
        font-size: 22px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }

    .modal-btn {
        padding: 13px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .support-section {
        margin-top: 20px;
        max-width: 250px;
    }
    
    .support-label {
        margin-bottom: 11px;
    }
    
    .support-label span {
        font-size: 9px;
        padding: 4px 14px;
        letter-spacing: 0.7px;
    }
    
    .support-logos {
        padding: 11px;
        gap: 10px;
        border-radius: 11px;
    }
    
    .support-logo-item {
        gap: 10px;
    }
    
    .support-logo {
        width: 40px;
        height: 40px;
        padding: 4px;
        border-radius: 8px;
    }
    
    .support-title {
        font-size: 10px;
        letter-spacing: 0.4px;
    }
    
    .support-subtitle {
        font-size: 8px;
    }
    
    .support-tagline {
        font-size: 6.5px;
        margin-top: 2px;
    }
}

/* ===== MOBILE - SMALL (428px) PORTRAIT ===== */
@media (max-width: 428px) and (orientation: portrait) {
    body {
        padding: 8px;
        overflow: hidden;
    }

    .login-container {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .login-left {
        padding: 25px 20px !important;
    }

    .login-left h1 {
        font-size: 20px;
        line-height: 1.2;
    }

    .login-right {
        padding: 25px 20px !important;
    }

    .login-header {
        margin-bottom: 18px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .form-control {
        padding: 12px 14px 12px 42px;
        font-size: 16px;
    }

    .btn-login {
        padding: 14px;
        font-size: 16px;
    }
    .support-section {
        margin-top: 18px;
        max-width: 240px;
    }
    
    .support-logos {
        padding: 10px;
        gap: 9px;
    }
    
    .support-logo {
        width: 38px;
        height: 38px;
    }
}

/* ===== MOBILE - EXTRA SMALL (360px) PORTRAIT ===== */
@media (max-width: 360px) and (orientation: portrait) {
    body {
        padding: 6px;
        overflow: hidden;
    }

    .login-container {
        border-radius: 14px;
        width: calc(100% - 12px);
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
    }

    .login-left {
        padding: 20px 15px !important;
    }

    .login-left h1 {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .login-left p {
        font-size: 11px;
        line-height: 1.3;
    }

    .recycle-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .recycle-icon svg {
        width: 28px;
        height: 28px;
    }

    .features {
        display: none;
    }

    .login-right {
        padding: 20px 15px !important;
    }

    .login-header {
        margin-bottom: 16px;
    }

    .login-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .login-header p {
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .input-icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .form-control {
        padding: 10px 10px 10px 36px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 44px;
    }

    .password-toggle {
        right: 10px;
        width: 16px;
        height: 16px;
        min-width: 40px;
        min-height: 40px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 44px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 11px;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .alert-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .modal-content {
        padding: 24px 20px;
        border-radius: 14px;
        width: 96%;
    }

    .modal-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
    }

    .modal-icon svg {
        width: 26px;
        height: 26px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-header p {
        font-size: 13px;
    }

    .modal-actions {
        gap: 8px;
        margin-top: 20px;
    }

    .modal-btn {
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 10px;
        min-height: 44px;
    }
    
    .support-section {
        margin-top: 15px;
        max-width: 220px;
    }
    
    .support-label {
        margin-bottom: 10px;
    }
    
    .support-label span {
        font-size: 8px;
        padding: 4px 12px;
        letter-spacing: 0.6px;
    }
    
    .support-logos {
        padding: 9px;
        gap: 8px;
        border-radius: 10px;
    }
    
    .support-logo-item {
        gap: 9px;
    }
    
    .support-logo {
        width: 36px;
        height: 36px;
        padding: 4px;
        border-radius: 7px;
    }
    
    .support-title {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .support-subtitle {
        font-size: 7.5px;
    }
    
    .support-tagline {
        font-size: 6px;
        margin-top: 2px;
    }
    
    .support-logo-divider {
        height: 1px;
    }
}

/* ===== LANDSCAPE MODE OPTIMIZATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    html, body {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
    
    body {
        padding: 8px;
        align-items: flex-start;
        padding-top: 10px;
        height: 100vh;
        height: 100dvh;
    }
    
    .login-container {
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        
        grid-template-columns: 40% 60%;
        margin: 0 auto;
        border-radius: 18px;
    }
    
    .login-left {
        padding: 25px 20px !important;
    }
    
    .login-left h1 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .login-left p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .recycle-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 12px !important;
    }
    
    .recycle-icon svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    .features {
        margin-top: 15px !important;
        display: none;
    }
    
   .support-section {
        margin-top: 12px !important;
        max-width: 240px;
    }
    
    .support-label {
        margin-bottom: 8px;
    }
    
    .support-label span {
        font-size: 8px;
        padding: 3px 12px;
    }
    
    .support-logos {
        padding: 8px !important;
        gap: 7px !important;
        border-radius: 10px;
    }
    
    .support-logo-item {
        gap: 8px;
    }
    
    .support-logo {
        width: 32px !important;
        height: 32px !important;
        padding: 3px;
        border-radius: 6px;
    }
    
    .support-title {
        font-size: 8px !important;
        letter-spacing: 0.3px;
    }
    
    .support-subtitle {
        font-size: 7px !important;
    }
    
    .support-tagline {
        font-size: 5.5px !important;
        margin-top: 1px;
    }
    
    .support-logo-divider {
        height: 1px;
        margin: 1px 0;
    }
    
    .login-right {
        padding: 25px 20px !important;
    }
    
    .login-header {
        margin-bottom: 20px !important;
    }
    
    .login-header h2 {
        font-size: 18px !important;
    }
    
    .login-header p {
        font-size: 12px !important;
    }
    
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group label {
        font-size: 12px !important;
    }
    
    .form-control {
        padding: 12px 12px 12px 40px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    .btn-login {
        padding: 12px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    /* For very short landscape screens */
    @media (max-height: 400px) {
        .login-container {
            grid-template-columns: 35% 65%;
            max-height: 98vh;
        }
        
        .login-left {
            padding: 15px 12px !important;
        }
        
        .login-right {
            padding: 15px 12px !important;
        }
        
        .recycle-icon {
            width: 40px !important;
            height: 40px !important;
        }
        
        .login-left h1 {
            font-size: 16px !important;
        }
        
        .support-section {
            display: none;
        }
        
        .login-header {
            margin-bottom: 15px !important;
        }
    }
}

/* ===== TOUCH DEVICE OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-login {
        min-height: 50px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .form-control {
        min-height: 50px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .password-toggle {
        min-width: 50px;
        min-height: 50px;
        padding: 15px;
        -webkit-tap-highlight-color: transparent;
    }

    .modal-btn {
        min-height: 50px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Remove hover effects on touch devices */
    .feature-item:hover {
        transform: none;
    }

    .btn-login:hover {
        transform: none;
    }

    .modal-btn:hover {
        transform: none;
    }
    
    .support-logo-item:hover {
        transform: none;
    }

    /* Add active states instead */
    .btn-login:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .modal-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .password-toggle:active {
        opacity: 0.7;
    }

    /* Prevent text selection */
    .login-left h1,
    .login-left p,
    .support-title,
    .support-subtitle,
    .support-tagline,
    .login-header h2,
    .login-header p,
    .form-group label {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .login-right {
        background: #1a1a1a;
    }
    
    .login-header h2 {
        color: #ffffff;
    }
    
    .login-header p {
        color: #cccccc;
    }
    
    .form-control {
        background: #2a2a2a;
        color: #ffffff;
        border-color: #444444;
    }
    
    .form-control::placeholder {
        color: #888888;
    }
    
    .form-control:focus {
        background: #333333;
        border-color: #7dd3a0;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
    }

    body::before,
    body::after {
        animation: none !important;
    }
}

/* ===== SAFE AREA SUPPORT (iPhone Notch) ===== */
@supports (padding: max(0px)) {
    body {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    @media (max-width: 768px) {
        body {
            padding-left: max(8px, env(safe-area-inset-left));
            padding-right: max(8px, env(safe-area-inset-right));
            padding-top: max(8px, env(safe-area-inset-top));
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }
    }
}

/* ===== LOGO ANIMATIONS ===== */
@keyframes fadeInUpLogo {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-logo-item {
    animation: fadeInUpLogo 0.6s ease forwards;
}

.support-logo-item:nth-child(1) {
    animation-delay: 0.1s;
}

.support-logo-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===== HOVER EFFECTS FOR DESKTOP ONLY ===== */
@media (hover: hover) and (pointer: fine) {
    .support-logo-item:hover .support-logo {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
    }
    
    .support-logo-item:hover {
        transform: translateX(5px);
        transition: transform 0.3s ease;
    }
    
    .support-logos:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }

    .btn-login {
        border: 3px solid transparent;
    }

    .alert {
        border-width: 3px;
    }
}

/* ===== KEYBOARD OPEN STATE ===== */
.login-container.keyboard-open {
    max-height: 60vh !important;
    
    position: relative !important;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white !important;
    }
    
    .login-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        max-width: 100% !important;
        height: auto !important;
    }
}