/* =========================
   CUSTOMER AUTH PAGES
   Login & Register
========================= */

* {
    box-sizing: border-box;
}
.auth-box {
    width: 100%;
    max-width: 420px;
    margin: 80px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #5a2ea6;
    font-size: 26px;
    font-weight: 600;
}
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}


/* Inputs */
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
}

.auth-box input:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 10px rgba(138,43,226,0.25);
}

/* Button */
.auth-box button {
    width: 100%;
    padding: 14px;
    background: #8a2be2;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-box button:hover {
    background: #6b1fc1;
}

/* Links */
.auth-box p {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-box a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 500;
}

.auth-box a:hover {
    text-decoration: underline;
}

/* Errors & success */
.error {
    background: #ffe5e5;
    color: #b00020;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.success {
    background: #e6fff0;
    color: #008040;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Mobile friendly */
@media (max-width: 420px) {
    .auth-box {
        width: 92%;
        padding: 30px 22px;
    }
}
/* Password strength indicator */
#strengthMessage {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.weak {
    color: #d8000c;
}

.medium {
    color: #ff8c00;
}

.strong {
    color: #008040;
}
/* Show / Hide password */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #777;
    -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.toggle-password:hover {
    color: #8a2be2;
}
#matchMessage {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}
