/* =============================================================================
   DSK Custom Login Page — login-form.css
   ============================================================================= */

.dsk-clp-wrap {
    width: 100%;
}

/* ── Notices ──────────────────────────────────────────────────────────────── */

.dsk-clp-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.dsk-clp-notice--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dsk-clp-notice--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.dsk-clp-notice--info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.dsk-clp-inline-notice { min-height: 0; transition: min-height .2s ease; }
.dsk-clp-inline-notice:not(:empty) { margin-bottom: 16px; }

/* ── States ───────────────────────────────────────────────────────────────── */

.dsk-clp-state--hidden { display: none; }

/* ── State transition ─────────────────────────────────────────────────────── */
 
@keyframes dsk-clp-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.dsk-clp-state.is-entering {
    animation: dsk-clp-enter .35s ease forwards;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */

.dsk-clp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dsk-clp-state-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */

.dsk-clp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dsk-clp-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.dsk-clp-field input[type="text"],
.dsk-clp-field input[type="email"],
.dsk-clp-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color .15s;
    outline: none;
}
.dsk-clp-field input:focus { border-color: #93c5fd; }

.dsk-clp-field--remember { flex-direction: row; align-items: center; }
.dsk-clp-field--remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #6b7280;
    cursor: pointer;
}
 
.dsk-clp-field--remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s, border-color .15s;
}
 
.dsk-clp-field--remember input[type="checkbox"]:checked {
    background-color: var(--dsk-clp-checkbox-color, #adf0c7);
    border-color: var(--dsk-clp-checkbox-color, #adf0c7);
}
 
.dsk-clp-field--remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--dsk-clp-checkbox-check-color, #1f2937);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.dsk-clp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s ease, opacity .2s ease;
}
.dsk-clp-btn--primary {
    background: #adf0c7;
    color: #1f2937;
    width: 100%;
}
.dsk-clp-btn--primary:hover    { background: #4ac578; color: #fff; }
.dsk-clp-btn--primary:disabled { opacity: .6; cursor: not-allowed; }

.dsk-clp-btn-loader {
    display: none;
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: #1f2937;
    border-radius: 50%;
    animation: dsk-clp-spin .7s linear infinite;
}
.dsk-clp-btn.is-loading .dsk-clp-btn-loader { display: block; }

@keyframes dsk-clp-spin { to { transform: rotate(360deg); } }

/* ── Link button ──────────────────────────────────────────────────────────── */

.dsk-clp-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    transition: color .15s;
}
.dsk-clp-link:hover, .dsk-clp-link:focus, .dsk-clp-link:active { color: #1f2937; background: none; }