
/* ==========================================
   PASTORS' WIVES MENTORING HUB
   MODERN LOGIN PAGE
========================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

.login-page {
    --primary: #4b176f;
    --primary-dark: #280c42;
    --primary-light: #f4ecf8;
    --gold: #c59a4a;
    --text: #251a30;
    --muted: #80788a;
    --border: #e8e2ec;

    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.login-page * {
    box-sizing: border-box;
}

.login-page #reg-main {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}


/* ==========================================
   LEFT BRAND PANEL
========================================== */

.login-page .reg-main-left {
    position: relative;
    width: 48%;
    min-height: 100vh;
    padding: 70px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(198, 151, 75, 0.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #58187c 0%,
            #391052 52%,
            #200b37 100%
        );
}

/* Login button loading state */

.login-page #login {
    position: relative;
    transition: all 0.25s ease;
}

.login-page #login:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.login-page #login .login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-page .reg-main-left::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    top: -180px;
    right: -220px;
}

.login-page .reg-main-left::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(197,154,74,0.25);
    border-radius: 50%;
    bottom: -180px;
    left: -150px;
}

.login-page .brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.login-page .brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    margin-bottom: 35px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-page .brand-badge i {
    color: #e6c27b;
}

.login-page .brand-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}

.login-page .brand-content h1 span {
    color: #e6c27b;
}

.login-page .brand-description {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.78);
    max-width: 450px;
    margin-bottom: 35px;
}

.login-page .brand-features {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.login-page .brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.login-page .brand-feature i {
    color: #e6c27b;
    font-size: 17px;
}

.login-page .brand-footer {
    position: absolute;
    bottom: 35px;
    left: 8%;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}


/* ==========================================
   RIGHT LOGIN PANEL
========================================== */

.login-page .reg-main-right {
    width: 52%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 40px;
    background: #ffffff;
}

.login-page .login-container {
    width: 100%;
    max-width: 420px;
}

.login-page .logo {
    margin-bottom: 36px;
}

.login-page .logo img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 110px;
    object-fit: contain;
}

.login-page .welcome-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 14px;
}

.login-page .reg-main-left-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.login-page .welcome-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 5px;
}


/* ==========================================
   FORM ELEMENTS
========================================== */

.login-page .reg-form {
    margin-bottom: 22px;
}

.login-page .form-class {
    width: 100%;
}

.login-page .reg-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #33253c;
}

.login-page .input-wrapper {
    position: relative;
    width: 100%;
}

.login-page .input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #988ca3;
    font-size: 15px;
    pointer-events: none;
}

.login-page .reg-form input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfafd;
    padding: 0 18px 0 47px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: 0.25s ease;
}

.login-page .reg-form input::placeholder {
    color: #a59bac;
}

.login-page .reg-form input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(75,23,111,0.08);
}


/* ==========================================
   PASSWORD FIELD
========================================== */

.login-page #password-form {
    position: relative;
}

.login-page #password-form .input-wrapper {
    width: 100%;
}

.login-page #password {
    padding-right: 52px;
}

.login-page #password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #81768b;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
}

.login-page #password-toggle:hover {
    color: var(--primary);
}

.login-page #password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
    border-radius: 3px;
}


/* ==========================================
   FORGOT PASSWORD
========================================== */

.login-page .forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 25px;
}

.login-page .forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.login-page .forgot-password a:hover {
    text-decoration: underline;
}


/* ==========================================
   LOGIN BUTTON
========================================== */

.login-page #login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        110deg,
        #592080,
        #391052
    );
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(75,23,111,0.18);
    transition: 0.25s ease;
}

.login-page #login:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        110deg,
        #6a2992,
        #451460
    );
    box-shadow: 0 14px 28px rgba(75,23,111,0.24);
}

.login-page #login:active {
    transform: translateY(0);
}

.login-page #login:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}


/* ==========================================
   SIGNUP AND FOOTER
========================================== */

.login-page .signup-section {
    text-align: center;
    margin-top: 27px;
    padding-top: 25px;
    border-top: 1px solid #eee8f0;
}

.login-page .signup-section p {
    font-size: 13px;
    color: var(--muted);
}

.login-page .signup-section a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.login-page .signup-section a:hover {
    text-decoration: underline;
}

.login-page .login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
    font-size: 11px;
    color: #a19aa9;
    text-align: center;
}

.login-page .login-footer i {
    color: var(--gold);
}


/* ==========================================
   TABLET RESPONSIVENESS
========================================== */

@media (max-width: 991px) {

    .login-page .reg-main-left {
        width: 43%;
        padding: 50px 5%;
    }

    .login-page .reg-main-right {
        width: 57%;
        padding: 40px 35px;
    }

    .login-page .brand-content h1 {
        font-size: 37px;
    }

    .login-page .brand-description {
        font-size: 13px;
    }

    .login-page .brand-footer {
        left: 5%;
    }
}


/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 767px) {

    .login-page #reg-main {
        display: block;
    }

    .login-page .reg-main-left {
        display: none;
    }

    .login-page .reg-main-right {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 35px 24px;
    }

    .login-page .login-container {
        max-width: 440px;
    }

    .login-page .logo {
        margin-bottom: 35px;
    }

    .login-page .logo img {
        max-width: 180px;
        max-height: 95px;
    }

    .login-page .reg-main-left-header h3 {
        font-size: 32px;
    }

    .login-page .welcome-description {
        font-size: 13px;
    }

    .login-page .reg-form input {
        height: 52px;
    }

    .login-page #login {
        height: 53px;
    }

    .login-page .login-footer {
        margin-top: 28px;
    }
}

@media (max-width: 380px) {

    .login-page .reg-main-right {
        padding: 28px 18px;
    }

    .login-page .reg-main-left-header h3 {
        font-size: 29px;
    }

    .login-page .logo img {
        max-width: 155px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .login-page #login,
    .login-page .reg-form input {
        transition: none;
    }
}
