/* ==========================================================================
   Floating-label login inputs — shared
   Used by: Member_Login.aspx, ForgetId.aspx
   (Login.aspx keeps its own inline copy; keep these in sync.)
   ========================================================================== */

@font-face {
    font-family: 'ClashGrotesk';
    src: url('../../fonts/ClashGrotesk-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

h1 { font-family: ClashGrotesk !important; }

/*=========================
    Premium Floating Input
==========================*/

.pl-field {
    position: relative;
    display: flex;
    align-items: flex-end;
    margin: 38px 0 32px;
    padding-left: 52px;
}

.pl-input {
    width: 100%;
    height: 54px;
    border: none;
    border-bottom: 1px solid #CFCFCF;
    background: transparent;
    outline: none;
    padding: 20px 42px 8px 0;
    font-size: 18px;
    font-weight: 500;
    color: #202020;
    font-family: 'ClashGrotesk', sans-serif;
    transition: .35s ease;
}

/* Focus underline */
.pl-input:focus { border-bottom-color: #1D8C3A; }

/* Left Icon */
.pl-field__icon {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 28px;
    height: 28px;
    color: #2B8E3D;
    transition: .35s ease;
}
.pl-field__icon svg { width: 100%; height: 100%; }

/* Label */
.pl-label {
    position: absolute;
    left: 52px;
    bottom: 17px;
    font-size: 15px;
    font-weight: 500;
    color: #777;
    pointer-events: none;
    transition: all .28s cubic-bezier(.4, 0, .2, 1);
    transform-origin: left top;
    background: #fff;
    padding: 0 4px;
}

/* Floating Animation */
.pl-input:focus + .pl-label,
.pl-input:not(:placeholder-shown) + .pl-label,
.pl-input.is-filled + .pl-label {
    transform: translateY(-25px) scale(.82);
    color: #1D8C3A;
    font-weight: 600;
}

/* Eye */
.pl-eye {
    position: absolute;
    right: 0;
    bottom: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #2B8E3D;
    transition: .3s;
}
.pl-eye:hover { color: #145d27; }
.pl-eye svg { width: 22px; height: 22px; }

/* Icon Animation */
.pl-input:focus ~ .pl-field__icon,
.pl-input:not(:placeholder-shown) ~ .pl-field__icon,
.pl-input.is-filled ~ .pl-field__icon {
    color: #1D8C3A;
    transform: scale(1.08);
}

/* ASP.NET TextBox placeholder hidden (floating label replaces it) */
.pl-input::-webkit-input-placeholder { color: transparent; }
.pl-input::-moz-placeholder { color: transparent; }
.pl-input:-ms-input-placeholder { color: transparent; }
.pl-input::placeholder { color: transparent; }

/* Autofill */
.pl-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #202020;
    /* hook so JS can detect autofill and float the label */
    animation-name: plAutoFillStart;
}
@keyframes plAutoFillStart { from {} to {} }

/* Animated focus underline accent */
.pl-line {
    position: absolute;
    left: 52px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #1D8C3A;
    transition: .35s ease;
}
.pl-input:focus ~ .pl-line { width: calc(100% - 52px); }

/*=========================
    Captcha + Login Type rows
    (non-floating, normal block layout)
==========================*/

.pl-block { margin: 30px 0; }

.pl-block .pl-captcha-label,
.pl-block .pl-field-label {
    display: block;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    font-family: 'ClashGrotesk', sans-serif;
}

/* Captcha row: input + image + refresh aligned */
.pl-block .pl-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pl-block .pl-captcha .pl-input {
    flex: 1 1 auto;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color .25s ease;
}
.pl-block .pl-captcha .pl-input:focus { border-color: #1D8C3A; }
/* show the captcha hint text (global rule makes it transparent) */
.pl-block .pl-captcha .pl-input::placeholder { color: #9a9a9a; }
.pl-block .pl-captcha .pl-input::-webkit-input-placeholder { color: #9a9a9a; }

.pl-block .pl-captcha .captchimg {
    height: 50px !important;
    width: auto !important;
    max-width: 150px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    background: #fff;
    object-fit: cover;
}
.pl-block .pl-refresh {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(29, 140, 58, .35) !important;
    background: rgba(29, 140, 58, .08);
    color: #1D8C3A !important;
    text-decoration: none;
    transition: transform .45s ease, background .2s ease;
}
.pl-block .pl-refresh:hover { background: rgba(29, 140, 58, .16); transform: rotate(180deg); }

/* Login Type select */
.pl-block .pl-select-wrap { position: relative; }
.pl-block .pl-select {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 16px;
    font-size: 16px;
    font-family: 'ClashGrotesk', sans-serif;
    color: #202020;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .25s ease;
}
.pl-block .pl-select:focus { border-color: #1D8C3A; }
.pl-block .pl-select-wrap::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #1D8C3A;
    border-bottom: 2px solid #1D8C3A;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
