/* C:\xampp_8.2_TICL\htdocs\ticl_web\auth\assets\css\auth-common.css */
/* =========================================================
   TICL AUTH COMMON CSS
   Shared by:
   - login.php
   - register.php
   - forgot-password.php
   - reset-password.php
   - change-password.php
========================================================= */


/* =========================================================
   BOX SIZING
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   COMMON CARD
========================================================= */

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}


/* =========================================================
   COMMON TITLES
========================================================= */

h1,
h2 {
    margin-top: 0;
    color: #2c3e50;
}

h2 {
    text-align: center;
    margin-bottom: 8px;
}


/* =========================================================
   COMMON SUBTITLE
========================================================= */

.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* =========================================================
   FORM
========================================================= */

form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}


/* =========================================================
   LABELS
========================================================= */

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
}


/* =========================================================
   INPUTS
========================================================= */

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1D8FCB;
    box-shadow: 0 0 0 3px rgba(29, 143, 203, .15);
}


/* =========================================================
   SMALL TEXT
========================================================= */

.small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666666;
}


/* =========================================================
   HELP TEXT
========================================================= */

.help-text {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}


/* =========================================================
   FIELD SPACING
========================================================= */

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================================================
   PASSWORD COMPONENTS
   Shared by:
   - login.php
   - register.php
   - reset-password.php
   - change-password.php
========================================================= */

/* Password field wrapper */
.password-wrapper,
.pwd-wrap {
    position: relative;
    width: 100%;
}

/* Password input */
.password-wrapper input,
.pwd-wrap input {
    width: 100%;
    padding-right: 46px;
}

/* Show / Hide icon */
.toggle-password,
.pwd-eye {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    user-select: none;

    font-size: 18px;
    line-height: 1;

    color: #6c757d;
    opacity: .75;

    transition:
        color .20s ease,
        opacity .20s ease,
        transform .20s ease;
}

/* Hover */
.toggle-password:hover,
.pwd-eye:hover {
    color: #1D8FCB;
    opacity: 1;
}

/* Active click */
.toggle-password:active,
.pwd-eye:active {
    transform: translateY(-50%) scale(.95);
}

/* Focus support */
.password-wrapper input:focus+.toggle-password,
.pwd-wrap input:focus+.pwd-eye {
    color: #1D8FCB;
}

/* Disabled password */
.password-wrapper input:disabled,
.pwd-wrap input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* =========================================================
   PASSWORD REQUIREMENTS
========================================================= */

.requirements {
    margin-top: 15px;
    padding: 14px 16px;

    border: 1px solid #d9e7ef;
    border-radius: 8px;

    background: #f8fbfd;
}

.requirements h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #2c3e50;
}

.requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.requirements li {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;

    color: #777;
    font-size: 14px;

    transition: color .25s ease;
}

.requirements li:last-child {
    margin-bottom: 0;
}

.requirements li i {
    width: 18px;
    text-align: center;
    color: #999;

    transition: color .25s ease;
}

.requirements li.valid {
    color: #198754;
}

.requirements li.valid i {
    color: #198754;
}

/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.strength {
    margin-top: 14px;
}

.strength-bar {
    width: 100%;
    height: 8px;

    background: #e9ecef;
    border-radius: 50px;

    overflow: hidden;
}

.strength-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    transition:
        width .35s ease,
        background-color .35s ease;
}

.strength-text {
    margin-top: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #666;
}

/* =========================================================
   PASSWORD MATCH
========================================================= */

.password-match {
    color: #198754;
}

.password-not-match {
    color: #dc3545;
}

/* =========================================================
   BUTTONS
========================================================= */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 12px 18px;

    border: none;
    border-radius: 6px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition:
        background-color .25s ease,
        transform .20s ease,
        box-shadow .20s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: translateY(0);
}

button:disabled,
.btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Primary */

.btn-primary,
.submit {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover,
.submit:hover {
    background: var(--secondary-hover);
}

/* Secondary */

.btn-secondary,
.clear-btn {
    background: #8a94a6;
    color: #ffffff;
}

.btn-secondary:hover,
.clear-btn:hover {
    background: #6f7a8c;
}

/* Dark */

.btn-dark {
    background: #0c0a02;
    color: #ffffff;
}

.btn-dark:hover {
    background: var(--secondary-hover);
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    padding: 12px 15px;
    margin-bottom: 16px;

    border-radius: 6px;
    border: 1px solid transparent;

    font-size: 14px;
    line-height: 1.5;
}

.alert ul {
    margin: 8px 0 0 18px;
}

.alert-success,
.okbox--active {
    background: #e7f7ee;
    border-color: #9bd9b6;
    color: #0a6b38;
}

.alert-warning,
.okbox--pending {
    background: #fff6e6;
    border-color: #f0cf8a;
    color: #9a6b00;
}

.alert-danger,
.errbox,
.alert-error {
    background: #ffeaea;
    border-color: #f5a3a3;
    color: #a30000;
}

.alert-info {
    background: #eef8fd;
    border-color: #b8ddf5;
    color: #0b5d88;
}

/* =========================================================
   LINKS
========================================================= */

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .25s ease;
}

a:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

.login-link,
.bottom {
    text-align: center;
    margin-top: 18px;
}

/* =========================================================
   DIVIDER
========================================================= */

.divider {
    height: 1px;
    margin: 20px 0;
    background: #dddddd;
}

/* =========================================================
   UTILITIES
========================================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.w-100 {
    width: 100%;
}

.fw-bold {
    font-weight: 700;
}

/* =========================================================
   SPACING
========================================================= */

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px) {

    .card {
        width: 100%;
    }

    button,
    .btn {
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

}

@media (max-width:480px) {

    .card {
        border-radius: 6px;
    }

    .requirements {
        padding: 12px;
    }

    .alert {
        font-size: 13px;
    }

}