/*
 * forms.css — Input fields, labels, focus states, inline validation alerts
 *             Covers both the classic .input100 style and the modern .input-wrapper style.
 *
 * @author  Mr.Server hossam.net HOSSAM ALZYOD
 * @version 2.0
 */

/* ================================================================
   CLASSIC INPUT (login page style)
   ================================================================ */
.login100-form { width: 100%; }

.login100-form-title {
    display: block;
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 39px;
    color: #333333;
    line-height: 1.2;
    text-align: center;
}

.wrap-input100 {
    width: 100%;
    position: relative;
    border-bottom: 2px solid #d9d9d9;
}

.label-input100 {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    padding-left: 7px;
}

.input100 {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    display: block;
    width: 100%;
    height: 55px;
    background: transparent;
    padding: 15px 7px 0 43px;
    cursor: pointer;
}

#link, #onlinelink { cursor: pointer; }

/* Focus underline animation */
.focus-input100 {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.focus-input100::after {
    content: attr(data-symbol);
    font-family: Material-Design-Iconic-Font;
    color: #adadad;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: calc(100% - 20px);
    bottom: 0;
    left: 0;
    padding-left: 13px;
    padding-top: 3px;
}

.focus-input100::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7f7f7f;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
}

.input100:focus + .focus-input100::before,
.has-val.input100 + .focus-input100::before { width: 100%; }

.input100:focus + .focus-input100::after,
.has-val.input100 + .focus-input100::after { color: #00c9a7; }

/* ================================================================
   MODERN INPUT WRAPPER (register / settings pages)
   ================================================================ */
.form-group { margin-bottom: 1.5rem; }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px;
}

.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.input-icon {
    font-size: 1rem;
    color: #e0e0e0;
    margin-right: 10px;
}

.styled-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #fff;
    padding: 10px 5px;
    outline: none;
}
.styled-input::placeholder { color: #e0e0e0; }

.styled-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    color: #fff;
    padding: 12px 16px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}
.styled-textarea::placeholder { color: #e0e0e0; }
.styled-textarea:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.toggle-password {
    font-size: 1rem;
    color: #e0e0e0;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}
.toggle-password:hover { color: #fff; }

/* ================================================================
   VALIDATION ALERTS
   ================================================================ */
.validate-input { position: relative; }

.alert-validate::before {
    content: attr(data-validate);
    position: absolute;
    max-width: 70%;
    background-color: #fff;
    border: 1px solid #c80000;
    border-radius: 2px;
    padding: 4px 25px 4px 10px;
    bottom: calc((100% - 20px) / 2);
    transform: translateY(50%);
    -webkit-transform: translateY(50%);
    right: 2px;
    pointer-events: none;
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-weight: 400;
    color: #c80000;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s;
}

.alert-validate::after {
    content: "\f06a";
    font-family: FontAwesome;
    display: block;
    position: absolute;
    color: #c80000;
    font-size: 16px;
    bottom: calc((100% - 20px) / 2);
    transform: translateY(50%);
    -webkit-transform: translateY(50%);
    right: 8px;
}

.alert-validate:hover::before { visibility: visible; opacity: 1; }

@media (max-width: 992px) {
    .alert-validate::before { visibility: visible; opacity: 1; }
}
