/* =========================================================
   DIGIFABRIX LOGIN PAGE
   ========================================================= */

.df-login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 56% 44%;
    background: var(--bg);
    overflow: hidden;
}

.df-login-brand {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 64px 7% 32px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 11, 24, 0.72), rgba(4, 11, 24, 0.26)),
        url('/assets/images/illustrater.jpg') center center / cover no-repeat;
}

.df-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.df-brand-content,
.df-brand-footer {
    position: relative;
    z-index: 2;
}

.df-brand-content {
    max-width: 620px;
}

.df-brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.df-brand-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.df-brand-name h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.df-brand-name span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.df-brand-message {
    margin-top: 62px;
    max-width: 520px;
}

.df-brand-message h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 3vw, 52px);
    line-height: 1.06;
    letter-spacing: -1.2px;
    font-weight: 800;
}

.df-brand-message p {
    margin: 0;
    max-width: 430px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
}

.df-login-illustration {
    display: none;
}

.df-brand-footer {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.df-login-form-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 36px;
    background: var(--bg);
}

.df-login-form-wrap {
    width: min(100%, 390px);
}

.df-login-heading {
    margin-bottom: 28px;
}

.df-login-heading h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    font-weight: 800;
}

.df-login-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

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

.df-form-group label,
.df-password-label label {
    display: block;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.df-password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.df-input-wrap {
    position: relative;
}

.df-input-wrap>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-mute);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.df-login-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    background: var(--panel) !important;
    color: var(--text) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-text-fill-color: var(--text) !important;
}

.df-login-input::placeholder {
    color: var(--text-mute);
    opacity: 1;
    font-size: 16px;
}

.df-login-input:hover {
    border-color: var(--accent-border);
}

.df-login-input:focus {
    background: var(--panel);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.df-login-input:-webkit-autofill,
.df-login-input:-webkit-autofill:hover,
.df-login-input:-webkit-autofill:focus,
.df-login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--panel) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    background-color: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--accent) !important;
}

.df-login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.df-login-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.df-login-button i {
    font-size: 15px;
}

.df-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.df-login-security i {
    color: var(--good);
    font-size: 14px;
}

@media (max-width: 980px) {
    .df-login-page {
        grid-template-columns: 1fr;
    }

    .df-login-brand {
        min-height: 320px;
        padding: 42px 28px 24px;
    }

    .df-brand-message {
        margin-top: 30px;
    }

    .df-login-form-panel {
        padding: 30px 22px 42px;
    }
}

@media (max-width: 520px) {
    .df-login-brand {
        padding: 28px 22px 18px;
    }

    .df-brand-name h1 {
        font-size: 22px;
    }

    .df-brand-message h2 {
        font-size: 28px;
    }

    .df-brand-message p {
        font-size: 14px;
    }

    .df-login-heading h2 {
        font-size: 28px;
    }

    .df-login-input {
        min-height: 44px;
        font-size: 16px;
    }
}