body {
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 4% 20px 20px;
}

.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 280px;
    font-family: 'Vazirmatn', sans-serif;
    direction: ltr;
    background: rgba(255, 255, 255, 0.116);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    padding: 24px 22px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(62,207,178,0.14), inset 0 1px 0 rgba(255,255,255,0.8);
}

.lf-brand {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lf-logo {
    width: 40px; 
    height: 40px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;  
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(62,207,178,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.6);
}

.logo-img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.lf-title {
    font-size: 14px;
    font-weight: 500;
    color: #0a4a4f;
    margin: 0;
    line-height: 1.3;
}

.lf-sub {
    font-size: 11px;
    font-weight: 300;
    color: #0a4a4f;
    margin: 0;
}

.lf-divider {
    height: 0.5px;
    background: rgba(255, 255, 255, 0.30);
    margin-bottom: 14px;
}

.lf-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.lf-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.lf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-label {
    font-size: 12px;
    font-weight: 500;
    color: #0a4a4f;
}

.lf-input {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
    color: #0a4a4f;
    outline: none;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lf-input::placeholder {
    color: #0a4a4f;
    font-size: 13px;
}

.lf-input:focus {
    border-color: rgba(62, 207, 178, 0.80);
    background: rgba(255, 255, 255, 0.26);
    box-shadow: 0 0 0 3px rgba(62, 207, 178, 0.18);
}

.lf-input.input-error {
    border-color: rgba(240, 107, 107, 0.80);
    background: rgba(240, 107, 107, 0.10);
}

.error-message {
    font-size: 11px;
    color: #0a4a4f;
    margin-top: 4px;
    display: none;
    font-weight: 400;
}

.error-message.active,
.error-message.show {
    display: block;
}

.lf-error {
    background: rgba(240, 107, 107, 0.12);
    border: 0.5px solid rgba(240, 107, 107, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #0a4a4f;
    margin-bottom: 16px;
    display: none;
}

.lf-error[style*="display: block"],
.lf-error[style*="display: flex"] {
    display: block !important;
}

.lf-input.error {
    border-color: rgba(240, 107, 107, 0.80) !important;
    background: rgba(240, 107, 107, 0.10) !important;
}

.error-message {
    font-size: 11px;
    color: #fca5a5;
    margin-top: 4px;
    display: none;
    font-weight: 400;
}

.error-message[style*="display: block"] {
    display: block !important;
}

.lf-btn {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, rgba(62,207,178,0.75), rgba(91,184,212,0.75));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(62,207,178,0.28), inset 0 1px 0 rgba(255,255,255,0.45);
}

.lf-btn:hover {
    background: linear-gradient(135deg, rgba(62,207,178,0.90), rgba(91,184,212,0.90));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(62,207,178,0.38), inset 0 1px 0 rgba(255,255,255,0.5);
}

.lf-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.lf-error {
    background: rgba(240, 107, 107, 0.10);
    border: 0.5px solid rgba(240, 107, 107, 0.30);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    color: #fca5a5;
    margin-bottom: 10px;
}

.lf-footer {
    margin-top: 10px;
    font-size: 11px;
    color: #0a4a4f;
    text-align: center;
    font-weight: 300;
}

/* Mobile */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        justify-content: center;
        padding: 36px 16px 20px;
    }
}

@media (min-width: 769px) {
    .bg-video--desktop { display: block; }
    .bg-video--mobile  { display: none; }
    .lf-input { color: #ffffff; }
    .lf-input::placeholder {
        color: #ffffff;
        opacity: 1;
    }
    .lf-input::-ms-input-placeholder { color: #ffffff; }
    .lf-footer { color: #ffffff; }
    .lf-label { color: #ffffff; }
    .lf-title { color: #ffffff; }
    .lf-sub { color: #ffffff; }
}