/*
 * SI-AJT Login Page Styles — Style 2 Centered Card Soft Minimal Modern
 * Path: public/css/login.css (METHOD A — direct asset link)
 *
 * Brand: PT. Anugerah Jaya Tekindo
 */

/* ========================================
 * FIX: SEMBUNYIKAN FILAMENT DEFAULT CHROME
 * ======================================== */

/* Hide brand logo + heading "Masuk ke akun Anda" + subheading dari page.simple */
.fi-simple-layout .fi-simple-main-section > header,
.fi-simple-main-section > header,
[class*="fi-simple-page-header"],
.fi-simple-layout-logo,
.fi-simple-layout > header {
    display: none !important;
}

/* Force light theme di login page (override Filament dark) */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #EAF3DE !important;
}

.fi-simple-layout,
.fi-simple-layout-main,
.fi-simple-main,
.fi-body {
    background: transparent !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

/* ========================================
 * MAIN WRAPPER & BACKGROUND
 * ======================================== */

.ajt-login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 9999;
    padding: 40px 24px;
    background: #EAF3DE;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
}

/* ========================================
 * DECORATIVE ORGANIC SHAPES (BACKGROUND)
 * ======================================== */

.ajt-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ajt-shape-1 {
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: #C0DD97;
    opacity: 0.5;
}

.ajt-shape-2 {
    bottom: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: #97C459;
    opacity: 0.4;
}

.ajt-shape-3 {
    top: 40%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: #C0DD97;
    opacity: 0.6;
}

/* ========================================
 * MAIN LOGIN CARD
 * ======================================== */

.ajt-login-card {
    background: white;
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 2;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(23, 52, 4, 0.06);
}

/* ========================================
 * BRAND / LOGO SECTION
 * ======================================== */

.ajt-brand-section {
    text-align: center;
    margin-bottom: 28px;
}

.ajt-logo-container {
    background: #EAF3DE;
    border-radius: 14px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.ajt-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.ajt-brand-title {
    font-size: 20px;
    font-weight: 500;
    color: #173404;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.ajt-brand-subtitle {
    font-size: 12px;
    color: #5F5E5A;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
 * DIVIDER
 * ======================================== */

.ajt-divider {
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    margin: 22px 0;
}

/* ========================================
 * FORM ELEMENTS
 * ======================================== */

.ajt-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.ajt-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.ajt-input-wrapper {
    position: relative;
}

.ajt-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888780;
    pointer-events: none;
    z-index: 2;
}

.ajt-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.ajt-input-with-icon {
    padding-left: 38px;
}

.ajt-input-with-toggle {
    padding-right: 38px;
}

.ajt-input::placeholder {
    color: #B4B2A9;
}

.ajt-input:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.ajt-input:focus {
    outline: none;
    border-color: #173404;
    box-shadow: 0 0 0 3px rgba(23, 52, 4, 0.1);
}

.ajt-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #888780;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ajt-password-toggle:hover {
    color: #173404;
    background: #EAF3DE;
}

.ajt-error {
    display: block;
    font-size: 11px;
    color: #A32D2D;
    margin-top: 4px;
    line-height: 1.4;
}

/* ========================================
 * REMEMBER ME + FORGOT PASSWORD ROW
 * ======================================== */

.ajt-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 4px;
}

.ajt-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5F5E5A;
    cursor: pointer;
    user-select: none;
}

.ajt-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #173404;
    cursor: pointer;
    margin: 0;
}

.ajt-link {
    font-size: 12px;
    color: #3B6D11;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.ajt-link:hover {
    color: #173404;
    text-decoration: underline;
}

/* ========================================
 * SUBMIT BUTTON
 * ======================================== */

.ajt-button {
    width: 100%;
    background: #173404;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: background-color 0.15s ease, transform 0.05s ease;
    font-family: inherit;
}

.ajt-button:hover:not(:disabled) {
    background: #27500A;
}

.ajt-button:active:not(:disabled) {
    transform: scale(0.99);
}

.ajt-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ajt-button:focus-visible {
    outline: 2px solid #639922;
    outline-offset: 2px;
}

/* ========================================
 * SECURITY NOTICE
 * ======================================== */

.ajt-security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #888780;
}

.ajt-security-notice svg {
    color: #639922;
}

/* ========================================
 * FOOTER
 * ======================================== */

.ajt-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: #888780;
    position: relative;
    z-index: 2;
}

/* ========================================
 * RESPONSIVE — MOBILE
 * ======================================== */

@media (max-width: 480px) {
    .ajt-login-wrapper {
        padding: 24px 16px;
    }

    .ajt-login-card {
        padding: 32px 24px;
    }

    .ajt-shape-1,
    .ajt-shape-2,
    .ajt-shape-3 {
        opacity: 0.3;
    }
}

/* ========================================
 * DARK MODE — paksa light di login page
 * ======================================== */

@media (prefers-color-scheme: dark) {
    .ajt-login-wrapper {
        background: #EAF3DE;
    }

    .ajt-login-card {
        background: white;
    }
}
