/* ==========================================================================
   TDM WMS LOGIN - CUSTOM CSS STYLESHEET
   ========================================================================== */

/* =====================================
   01. ROOT VARIABLES
===================================== */
:root {
    --control-height: 52px;
    --control-radius: 16px;
    --primary: #0066cc;
}


/* =====================================
   02. LAYOUT & BACKGROUND
===================================== */
.container-login100::before {
    background: linear-gradient(
        135deg,
        rgba(0,45,90,.75),
        rgba(0,0,0,.45)
    );
}

.wrap-login100 {
    background: rgba(255,255,255,.50);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}


/* =====================================
   03. HEADER & BRANDING
===================================== */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.logo-container img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,.15));
}

.login100-form-title b {
    font-size: 26px;
    color: #123;
}

.login-box-msg {
    color: #666;
}


/* =====================================
   04. INPUT COMPONENTS (Kotak Input & Icon)
===================================== */
.wrap-input100 {
    position: relative;
    width: 100%;
    background: transparent !important;
}

/* Pastikan saat error aktif, background tetap transparan */
.wrap-input100.field-error-active {
    background: transparent !important;
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 0 !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    color: #0d6efd;
    font-size: 15px;
    z-index: 5;
}

.input100 {
    width: 100%;
    height: 52px;
    line-height: 50px !important;
    padding-top: 0px !important;
    padding-bottom: 3px !important;
    padding-left: 55px !important;
    padding-right: 45px !important;
    border-radius: 16px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    font-family: SourceSansPro-Regular, sans-serif !important;
    font-weight: normal !important;
}

.input100::placeholder {
    color: #9ca3af !important;
    font-family: SourceSansPro-Regular, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 50px !important;
}

.input100:focus {
    background: #ffffff !important;
}

.wrap-input100:focus-within {
    background: transparent !important;
    border-color: transparent;
}

/* Menghilangkan efek focus bawaan template */
.validate-form .focus-input100 {
    display: none !important;
    border-radius: var(--control-radius);
}


/* =====================================
   05. BUTTONS (Tombol Login)
===================================== */
.container-login100-form-btn {
    height: var(--control-height);
}

.login100-form-btn {
    width: 100%;
    height: var(--control-height);
    font-size: 15px;
    background: linear-gradient(
        135deg,
        #0066cc,
        #003366
    );
    border-radius: var(--control-radius);
}

.login100-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,80,160,.35);
}


/* =====================================
   06. FORM VALIDATION & STATES (Validasi & Error Input)
===================================== */
.validate-input {
    position: relative;
    margin-bottom: 20px !important;
}

/* Teks Pesan Error Bawah */
.field-error {
    display: none;
    margin-top: 8px;
    margin-left: 15px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

/* State: Jika Input Error (Merah) */
.validate-input.field-error-active .field-error,
.wrap-input100.field-error-active .field-error {
    display: block !important;
}

.validate-input.field-error-active input.input100 {
    border-color: #ef4444 !important;
}

.validate-input.field-error-active .input-icon {
    color: #dc2626;
}

/* State: Jika Input Valid/Benar (Hijau) */
.true-validate {
    background: #ffffff !important;
}

.true-validate .input100 {
    background: #ffffff !important;
}

.true-validate .focus-input100 {
    box-shadow: none !important;
}

.true-validate::after {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 14px;
}


/* =====================================
   07. ALERTS (Notifikasi Popup)
===================================== */
.login-alert {
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 18px;
    padding: 12px 40px 12px 15px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 13px;
    text-align: center;
    animation: fadeDown .3s ease;
}

.login-alert i {
    margin-right: 6px;
}

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #be123c;
    font-size: 20px;
    cursor: pointer;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================
   08. FOOTER
===================================== */
.login-footer {
    margin-top: 35px;
    line-height: 1.8;
    text-align: center;
    font-size: 12px;
    color: #777;
}