﻿
/* =========================
                           GLOBAL
                        ========================= */

body {
    margin: 0;
    padding: 0;
    background: #f8f4ee;
    font-family: "Segoe UI", sans-serif;
    overflow-x: hidden;
}

/* =========================
                           LAYOUT
                        ========================= */

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================
                           LEFT SIDE
                        ========================= */

.auth-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* LOGIN PAGE IMAGE */
.login-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/login.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

/* REGISTER PAGE IMAGE */
.register-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/register.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

/* REGISTER PAGE IMAGE */
.emailrecoverpassword-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/emailrecoverpassword.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

/* REGISTER PAGE IMAGE */
.recoverpassword-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/recoverpassword.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

/* REGISTER PAGE IMAGE */
.emailaccountverification-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/emailaccountverification.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(45, 20, 0, 0.45), rgba(15, 8, 0, 0.82) );
}

.image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

/* =========================
                           LOGO
                        ========================= */

.animated-logo {
    width: 110px;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.25));
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================
                           LEFT TEXT
                        ========================= */

.ved-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.ved-subtitle {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
}

.spiritual-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
}

/* =========================
                           RIGHT SIDE
                        ========================= */

.login-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f8f4ee;
}

/* =========================
                           LOGIN BOX
                        ========================= */

.login-box {
    width: 100%;
    max-width: 430px;
    padding: 45px 40px;
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.12);
    border-top: 5px solid #ff7a00;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

    .login-box:hover {
        transform: translateY(-4px);
    }

/* =========================
                           LOGIN HEADER
                        ========================= */

.ved-login-title {
    color: #7a3e00;
    font-weight: 700;
}

/* =========================
                           INPUTS
                        ========================= */

.form-control {
    height: 56px;
    border-radius: 12px;
    border: 1px solid #e6d6c5;
    box-shadow: none !important;
}

    .form-control:focus {
        border-color: #ff8c00;
        box-shadow: 0 0 0 0.2rem rgba(255,140,0,0.15) !important;
    }

.form-floating > .form-control {
    padding-right: 50px;
}

.form-floating label i {
    margin-right: 5px;
    color: #9a6b39;
}

/* =========================
                           PASSWORD TOGGLE
                        ========================= */

.password-box {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    color: #7b7280;
}

    .toggle-password:hover {
        color: #ff7a00;
    }

/* =========================
                           BUTTON
                        ========================= */

.login-btn {
    height: 52px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #ff7a00, #d97706);
    transition: 0.3s ease;
}

    .login-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(255,122,0,0.35);
    }

/* =========================
                           LINKS
                        ========================= */

a {
    color: #b45309;
}

    a:hover {
        color: #7c2d12;
    }

/* =========================
                           VALIDATION
                        ========================= */

label.error,
.text-danger {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
}

/* =========================
                           MOBILE
                        ========================= */

@media(max - width:768px) {

    .auth-image {
        display: none !important;
    }

    .login-box {
        padding: 35px 28px;
    }
}

/* =========================
   PASSWORD STRENGTH
========================= */

.password-strength {
    width: 100%;
}

.strength-bar {
    width: 100%;
    height: 7px;
    background: #e5e7eb;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 6px;
}

#strengthBar {
    height: 100%;
    width: 0%;
    border-radius: 30px;
    background: red;
    transition: all 0.4s ease;
}

.strength-text {
    font-size: 13px;
    font-weight: 500;
}
