/**
 * Custom AJAX Login — Premium Beautified Styles
 * Modern, clean login form with inline SVG icons and smooth animations.
 */

/* ─── Wrapper ─────────────────────────────────────────────────── */
.custom-ajax-login-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

/* ─── Form Container ──────────────────────────────────────────── */
.custom-ajax-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;

    background: #ffffff;
    padding: 40px 36px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e8ecf0;
    transition: box-shadow 0.3s ease;
}

/* ─── Header Section ──────────────────────────────────────────── */
.custom-login-header {
    text-align: center;
    margin-bottom: 4px;
}

.custom-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #f0f6fc;
    border-radius: 50%;
    margin-bottom: 12px;
}

.custom-login-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 6px;
    line-height: 1.3;
}

.custom-login-subheading {
    font-size: 14px;
    color: #6f7780;
    margin: 0;
    line-height: 1.5;
}

/* ─── Field Container ─────────────────────────────────────────── */
.custom-login-field {
    display: flex;
    flex-direction: column;
}

.custom-login-field label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    letter-spacing: 0.2px;
}

/* ─── Input Wrapper (Icon + Input) ────────────────────────────── */
.custom-login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-login-input-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    border-left: 1px solid #e2e6ea;
    transition: border-color 0.25s ease;
}

.custom-login-input-wrapper:focus-within .custom-login-input-icon svg {
    stroke: #2271b1;
}

.custom-login-input-wrapper:focus-within .custom-login-input-icon {
    border-left-color: #2271b1;
}

/* ─── Text & Password Inputs ──────────────────────────────────── */
.custom-ajax-login-form input[type="text"],
.custom-ajax-login-form input[type="password"] {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid #e2e6ea;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #1d2327;
    background: #f8f9fa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.custom-ajax-login-form input[type="text"]:hover,
.custom-ajax-login-form input[type="password"]:hover {
    background: #ffffff;
    border-color: #c5cbd0;
}

.custom-ajax-login-form input[type="text"]:focus,
.custom-ajax-login-form input[type="password"]:focus {
    border-color: #2271b1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.10);
    outline: none;
}

.custom-ajax-login-form input[type="text"]::placeholder,
.custom-ajax-login-form input[type="password"]::placeholder {
    color: #9ca2a7;
    opacity: 1;
}

/* ─── Error state on input ─────────────────────────────────────── */
.custom-ajax-login-form input.custom-login-input-error {
    border-color: #d63638;
    background: #fffbfb;
    padding-right: 50px;
    padding-left: 16px;
}

.custom-login-input-wrapper:has(input.custom-login-input-error) .custom-login-input-icon svg {
    stroke: #d63638;
}

.custom-login-input-wrapper:has(input.custom-login-input-error) .custom-login-input-icon {
    border-left-color: #d63638;
}

.custom-ajax-login-form input.custom-login-input-error:focus {
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.10);
    border-color: #d63638;
}

/* ─── Inline field error message ───────────────────────────────── */
.custom-login-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    line-height: 1.4;
    padding-left: 2px;
}

/* ─── General message box (error or success) ───────────────────── */
.custom-login-message {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

.custom-login-error-message {
    background-color: #fcf0f1;
    border: 1px solid #fabdbb;
    color: #b32d2e;
}

.custom-login-success-message {
    background-color: #edfaef;
    border: 1px solid #b5e1b8;
    color: #2a6b30;
}

/* ─── Remember Me checkbox ─────────────────────────────────────── */
.custom-login-remember {
    flex-direction: row;
    align-items: center;
    margin-top: -4px;
}

.custom-login-remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #50575e;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-login-remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox visual */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #c5cbd0;
    border-radius: 5px;
    background: #ffffff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.custom-checkbox::after {
    content: '';
    display: none;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
}

.custom-login-remember input[type="checkbox"]:checked + .custom-checkbox {
    background: #2271b1;
    border-color: #2271b1;
}

.custom-login-remember input[type="checkbox"]:checked + .custom-checkbox::after {
    display: block;
}

.custom-login-remember input[type="checkbox"]:focus + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* ─── Submit button ────────────────────────────────────────────── */
.custom-login-submit {
    width: 100%;
    padding: 14px 24px;
    background: #135e4e !important;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.25);
    position: relative;
    overflow: hidden;
}

.custom-login-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #135e4e, #135e4e);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.custom-login-submit-text,
.custom-login-submit-arrow {
    position: relative;
    z-index: 1;
}

.custom-login-submit-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.custom-login-submit:hover::before {
    opacity: 1;
}

.custom-login-submit:hover .custom-login-submit-arrow {
    transform: translateX(4px);
}

.custom-login-submit:active {
    transform: scale(0.98);
}

.custom-login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Loading state ────────────────────────────────────────────── */
.custom-login-submit.custom-login-loading {
    opacity: 0.85;
}

.custom-login-submit.custom-login-loading .custom-login-submit-arrow {
    display: none;
}

/* ─── Lost password link ───────────────────────────────────────── */
.custom-login-extra {
    text-align: center;
    font-size: 14px;
    padding-top: 2px;
}

.custom-login-extra a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-login-extra a:hover {
    color: #135e4e;
    text-decoration: underline;
}

/* ─── Already logged-in message ────────────────────────────────── */
.custom-login-already-logged-in {
    padding: 32px 24px;
    background: linear-gradient(135deg, #f0f6fc, #e2edf7);
    border: 1px solid #c5d9ed;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.custom-login-already-logged-in p {
    margin: 0 0 12px;
    color: #1d2327;
    font-size: 15px;
}

.custom-login-already-logged-in p:last-child {
    margin-bottom: 0;
}

.custom-login-already-logged-in a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.custom-login-already-logged-in a:hover {
    color: #135e4e
    text-decoration: underline;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .custom-ajax-login-form {
        padding: 28px 20px 24px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.02);
    }

    .custom-login-heading {
        font-size: 20px;
    }
}
.custom-login-submit{color:#fff !important}