/* Moved out of _LoginPartial.cshtml <style> block. */
.app-root { padding: 0 !important; }

/* Replaced inline styles in _LoginPartial.cshtml. */
.login-bpia-logo { width: 200px; height: 200px; padding: 20px; align-self: center; }
.login-welcome { text-align: center; }

/* ============================================
   LEARN MORE-BASED CONTAINER VISIBILITY
   ============================================ */

.main-container-panel {
    width: 1440px;
    padding-top: 35px;
    padding-bottom: 65px;
    padding-left: 130px;
    padding-right: 130px;
    background: #FBFCFF;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    display: inline-flex
}

.sub-container-panel {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    display: flex
}

.container1 {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    display: inline-flex
}

.signin-title {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 33px;
    display: inline-flex
}

.signin-title-style {
    color: black;
    font-size: 1.375rem;
    font-family: Open Sans;
    font-weight: 700;
    line-height: 32px;
    word-wrap: break-word
}

.container-info-row {
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    display: inline-flex
}

.container1-div {
    flex: 1 1 0;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    display: flex
}

.container1-div-title {
    color: #4A5F89;
    font-size: 1.125rem;
    font-family: Open Sans;
    font-weight: 700;
    line-height: 26px;
    word-wrap: break-word
}

.container1-gap {
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    display: flex
}

.container-content-text {
    width: 1100px;
    color: #495057;
    font-size: 1rem;
    font-family: Open Sans;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word
}

.container1-content-self {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    display: inline-flex
}

.container1-content-self-div {
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    display: flex
}
/* ============================================
   LOG IN FORM VISIBILITY
   ============================================ */
.signin {
    display: flex;
    height: auto;
    padding: 15px 150px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: var(--Global-Main-Blue, #1b84ff);
    color: white !important;
    margin-top: 36px;
    text-decoration: none !important;
}

    .signin:hover {
        background: var(--Global-Main-Blue, #3d96ff);
        color: white !important;
        text-decoration: none !important;
    }
#login-form h1 {
    color: #212529;
    text-align: center;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}

#login-form p {
    color: var(--Global-Grey-Dark, #555B60);
    text-align: center;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#login-form a {
    /* color: var(--Global-Main-Blue, #1b84ff) !important; */
    /* Link/Default Underline */
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 19px; /* 135.714% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}
#login-form button {
    display: flex;
    height: 46px;
    padding: 15px 30px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 50px;
    background: var(--Global-Main-Blue, #007CAF);
    color: white;
    margin-top: 36px;
}

#login-form span {
    color: var(--Text-Input-Text, #495057);
    /* Label/Default */
    font-family: "Open Sans";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
    padding-top: 40px;
}

#login-form > div {
    display: flex;
    width: 480px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
}



/* ============================================
   Login in new design
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: var(--phs-ink-muted);
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --header-bg: #2d3748;
    --accent-red: #FF6B6B;
    --accent-yellow: #FFD93D;
    --accent-teal: #4ECDC4;
    --transition: var(--phs-transition);
}
/*
[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-card: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --header-bg: #171923;
}*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.app-wrapper{
    padding:0px!important;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Header Styles */
header {
    background: var(--header-bg);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--phs-z-sticky, 200);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

    .logo:hover {
        opacity: 0.9;
    }

.logo-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.625rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.02em;
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }

    .theme-toggle:active {
        transform: scale(0.95);
    }

    .theme-toggle::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .theme-toggle:hover::before {
        opacity: 1;
    }

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
}

.container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

/* Hero Section */
.hero-content {
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.icon-container {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    padding: 2.5rem;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/*[data-theme="dark"] .icon-container {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}
*/
.icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.icon-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
}

.hero-icon {
    width: 220px;
    height: 220px;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
/*
[data-theme="dark"] .hero-icon {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}*/

    /* Update SVG colors for dark mode */
    /*[data-theme="dark"] .hero-icon .doc-bg {
        fill: #4a5568;
    }

    [data-theme="dark"] .hero-icon .text-line {
        stroke: #e2e8f0;
    }

    [data-theme="dark"] .hero-icon .gear-center {
        fill: #2d3748;
    }*/

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--phs-ink-heading);
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Login Card - Shifted right and expanded vertically */
.login-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 0.6s ease-out;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-left: 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-card {
    font-size: 0.9375rem; /* base font size for all text */
    color: var(--text-primary);
}

    .login-card:hover {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    }

    .login-card h2 {
        font-size: 1.5rem; /* larger heading */
        margin-bottom: 0.75rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .login-card > p,
    .login-card a,
    .login-card .divider span,
    .login-card .help-text {
        font-size: 0.9375rem; /* consistent body text */
        color: var(--text-primary);
        font-weight: 500;
    }

    .login-card a {
        color: #667eea;
        text-decoration: none;
        transition: var(--transition);
    }

        .login-card a:hover {
            color: #764ba2;
            text-decoration: underline;
        }


    .login-card a:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
        border-radius: 4px;
    }

/* Button Styles */
.btn-sign-in-main {
    width: 100%;
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    position: relative;
    overflow: hidden;
    text-align:center!important;
}

    .btn-sign-in-main::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .btn-sign-in-main:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    }

        .btn-sign-in-main:hover::before {
            opacity: 1;
        }

    .btn-sign-in-main:active {
        transform: translateY(0);
    }

    .btn-sign-in-main:focus {
        outline: 3px solid rgba(102, 126, 234, 0.5);
        outline-offset: 2px;
    }

.help-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border-color);
    }

    .divider span {
        padding: 0 1rem;
    }

/* Feature Pills */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .feature-pill:hover {
        background: var(--bg-secondary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: #667eea;
    }

.feature-icon {
    width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .icon-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 320px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .login-card {
        padding: 2.5rem 2rem;
        margin-left: 0;
        min-height: auto;
    }

    header {
        padding: 1rem 1.5rem;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.6875rem;
    }

    .features {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-icon {
        width: 180px;
        height: 180px;
    }

    .icon-container {
        padding: 2rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

        .login-card h2 {
            font-size: 1.5rem;
        }

    .logo-text {
        display: none;
    }

    .logo-icon {
        padding: 0.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
