/*
 * FINANCEOS360 MAINTENANCE DOCUMENTATION
 * File: auth-style.css
 * Role: Stylesheet for this page/module.
 * Maintenance: preserve existing selectors, responsive breakpoints, layout, dimensions, colors, and component states unless explicitly requested.
 */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #111827;
}


/* =====================================
   MAIN AUTH LAYOUT
===================================== */

.auth {
    width: 100%;
    min-height: 100vh;
    display: flex;
}


/* =====================================
   LEFT PANEL
   MATCHES FINANCEOS360 HOME THEME
===================================== */

.auth-info {
    width: 50%;
    min-height: 100vh;
    padding: 48px 8%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #ffffff;

    background:
        radial-gradient(
            circle at top right,
            rgba(147, 197, 253, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #2563eb 0%,
            #1d4ed8 55%,
            #1e40af 100%
        );

    position: relative;
    overflow: hidden;
}


.auth-info::before {
    content: "";
    position: absolute;

    width: 340px;
    height: 340px;

    right: -120px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}


.auth-info::after {
    content: "";
    position: absolute;

    width: 230px;
    height: 230px;

    right: 18%;
    top: 22%;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


.brand,
.auth-info-content,
.info-footer {
    position: relative;
    z-index: 1;
}


/* =====================================
   BRAND
===================================== */

.brand {
    width: fit-content;

    color: #ffffff;
    text-decoration: none;

    font-size: 26px;
    font-weight: 800;

    letter-spacing: -0.8px;
}

.brand span {
    color: #bfdbfe;
}


/* =====================================
   LEFT CONTENT
===================================== */

.auth-info-content {
    max-width: 510px;
}


.welcome-tag {
    display: inline-block;

    margin-bottom: 28px;
    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}


.auth-info h1 {
    margin: 0;

    font-size: clamp(44px, 5vw, 64px);
    line-height: 1.05;

    letter-spacing: -2px;
}


.auth-info h1 span {
    color: #bfdbfe;
}


.auth-info p {
    max-width: 460px;

    margin: 24px 0 34px;

    color: #dbeafe;

    font-size: 16px;
    line-height: 1.7;
}


/* =====================================
   FEATURE POINTS
===================================== */

.info-points {
    display: flex;
    flex-direction: column;

    gap: 15px;
}


.info-points div {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #eff6ff;

    font-size: 14px;
}


.info-points span {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}


.info-footer {
    color: #bfdbfe;

    font-size: 13px;
}


/* =====================================
   RIGHT AUTH PANEL
===================================== */

.auth-box {
    width: 50%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 8%;

    background: #ffffff;
}


.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}


/* =====================================
   MOBILE BRAND
===================================== */

.mobile-brand {
    display: none;
}


/* =====================================
   BACK HOME
===================================== */

.back-home {
    display: inline-flex;
    align-items: center;

    margin-bottom: 28px;

    color: #64748b;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.back-home:hover {
    color: #2563eb;
}


/* =====================================
   FORM HEADING
===================================== */

.form-heading h2 {
    margin: 0 0 8px;

    font-size: 34px;
    line-height: 1.2;

    letter-spacing: -1px;
}


.form-heading p {
    margin: 0 0 28px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================
   MESSAGES
===================================== */

.message {
    margin-bottom: 20px;
    padding: 13px 15px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
}


.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}


.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}


/* =====================================
   FORM
===================================== */

.auth-box form {
    width: 100%;
}


.auth-box label {
    display: block;

    margin-top: 17px;

    color: #334155;

    font-size: 12px;
    font-weight: 700;
}


.auth-box input {
    display: block;

    width: 100%;
    height: 48px;

    margin-top: 8px;
    padding: 0 14px;

    border: 1px solid #d7dee8;
    border-radius: 10px;

    outline: none;

    background: #ffffff;
    color: #111827;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-box input::placeholder {
    color: #94a3b8;
}


.auth-box input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.10);
}


/* =====================================
   PRIMARY BUTTON
===================================== */

.primary {
    width: 100%;
    height: 48px;

    margin-top: 24px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: #ffffff;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.15s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.primary:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(37, 99, 235, 0.22);
}


.primary:active {
    transform: translateY(0);
}


/* =====================================
   FORGOT PASSWORD
===================================== */

.forgot {
    display: block;

    margin-top: 12px;

    text-align: right;

    color: #2563eb;
    text-decoration: none;

    font-size: 12px;
    font-weight: 600;
}


.forgot:hover {
    text-decoration: underline;
}


/* =====================================
   OR DIVIDER
===================================== */

.or {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 24px 0 18px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;

    text-align: center;
}


.or::before,
.or::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}


/* =====================================
   GOOGLE LOGIN / SIGNUP
===================================== */

.google-wrap {
    width: 100%;
    min-height: 44px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 10px;
}


.google-wrap > div {
    max-width: 100%;
}


.google {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d7dee8;
    border-radius: 10px;

    background: #ffffff;
    color: #334155;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.google:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}


/* =====================================
   SWITCH LOGIN / SIGNUP
===================================== */

.switch {
    margin-top: 25px;

    text-align: center;

    color: #64748b;

    font-size: 13px;
}


.switch a {
    color: #2563eb;
    text-decoration: none;

    font-weight: 700;
}


.switch a:hover {
    text-decoration: underline;
}


/* =====================================
   LARGE DESKTOP
===================================== */

@media (min-width: 1500px) {

    .auth-info {
        padding-left: 12%;
        padding-right: 10%;
    }

    .auth-box {
        padding-left: 12%;
        padding-right: 12%;
    }

}


/* =====================================
   LAPTOP
===================================== */

@media (max-width: 1100px) {

    .auth-info {
        padding: 45px 6%;
    }

    .auth-box {
        padding: 45px 7%;
    }

    .auth-info h1 {
        font-size: 52px;
    }

}


/* =====================================
   TABLET
===================================== */

@media (max-width: 850px) {

    .auth-info {
        width: 44%;
        padding: 40px 5%;
    }

    .auth-box {
        width: 56%;
        padding: 40px 6%;
    }

    .auth-info h1 {
        font-size: 44px;
    }

    .auth-info p {
        font-size: 14px;
    }

    .info-points div {
        font-size: 13px;
    }

}


/* =====================================
   MOBILE / SMALL TABLET
===================================== */

@media (max-width: 1024px) {

    .auth {
        display: block;
    }

    .auth-info {
        display: none;
    }

    .auth-box {
        width: 100%;
        min-height: 100vh;

        align-items: flex-start;

        padding: 32px 24px 45px;
    }

    .auth-form-wrapper {
        max-width: 520px;
        margin: 0 auto;
    }

    .mobile-brand {
        display: inline-block;

        margin-bottom: 30px;

        color: #111827;
        text-decoration: none;

        font-size: 26px;
        font-weight: 800;
    }

    .mobile-brand span {
        color: #2563eb;
    }

    .back-home {
        margin-bottom: 24px;
    }

    .form-heading h2 {
        font-size: 30px;
    }

}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 420px) {

    .auth-box {
        padding: 25px 18px 40px;
    }

    .mobile-brand {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-heading h2 {
        font-size: 28px;
    }

    .auth-box input,
    .primary,
    .google {
        height: 46px;
    }

}


/* =====================================
   VERY SMALL MOBILE
===================================== */

@media (max-width: 340px) {

    .auth-box {
        padding-left: 14px;
        padding-right: 14px;
    }

    .form-heading h2 {
        font-size: 26px;
    }

}

/* =====================================
   PUBLIC AUTH HEADER / FOOTER
   Login + Signup only
===================================== */

.public-header {
    width: 100%;
    padding:  14px;
    background: #eef4ff;
}

.public-header-inner {
    width: 100%;
    max-width: none;
    min-height: 64px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    padding: 0 26px;

    background: #ffffff;
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.public-logo,
.public-logo:visited {
    color: #111827;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

.public-logo span {
    color: #2563eb;
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.public-nav a,
.public-nav a:visited {
    position: relative;
    padding: 23px 0;

    color: #475569;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.public-nav a:hover {
    color: #2563eb;
}

.public-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;

    height: 2px;

    background: #2563eb;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.public-nav a:hover::after {
    transform: scaleX(1);
}

.public-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-actions a {
    min-width: 82px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.public-login,
.public-login:visited {
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #2563eb;
}

.public-signup,
.public-signup:visited {
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
}

.public-login:hover {
    background: #eff6ff;
}

.public-signup:hover {
    background: #1d4ed8;
}

.public-footer {
    width: 100%;
    padding: 16px 5%;
    background: #111827;
    color: #ffffff;
}

.public-footer-inner {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.public-footer .public-logo {
    color: #ffffff;
    font-size: 20px;
}

.public-footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.public-footer-links a,
.public-footer-links a:visited {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 11px;
}

.public-footer-links a:hover {
    color: #ffffff;
}

.public-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
}


/* =====================================
   PUBLIC AUTH RESPONSIVE
===================================== */

@media (max-width: 1024px) {

    .public-header {
        padding: 10px 16px;
    }

    .public-header-inner {
        min-height: 58px;
        padding: 0 18px;
        gap: 16px;
    }

    .public-nav {
        gap: 18px;
    }

    .public-nav a {
        font-size: 12px;
    }

    .public-actions a {
        min-width: 72px;
        height: 36px;
    }

    .public-footer {
        padding: 15px 16px;
    }

    .public-footer-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
}


@media (max-width: 700px) {

    .public-header-inner {
        min-height: auto;
        padding: 14px 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .public-logo {
        width: 100%;
        text-align: center;
    }

    .public-nav {
        order: 3;
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        justify-content: center;
    }

    .public-nav a {
        padding: 6px 0;
        white-space: nowrap;
        font-size: 11px;
    }

    .public-nav a::after {
        bottom: 1px;
    }

    .public-actions {
        gap: 8px;
    }

    .public-actions a {
        min-width: 76px;
        height: 34px;
        font-size: 11px;
    }

    .public-footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .public-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }
}


@media (max-width: 420px) {

    .public-header {
        padding: 8px 10px;
    }

    .public-header-inner {
        padding: 12px;
    }

    .public-nav {
        gap: 12px;
    }

    .public-nav a {
        font-size: 10px;
    }
}

/* PUBLIC AUTH HEADER - FIXED */
.public-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
}
