﻿/* ============================================================
   BanyanPro LMS - Login Page CSS (Split-Screen Layout)
   Theme: Gold/Yellow (#d6aa08)
   ============================================================ */

/* === Reset & Base === */
body {
    font-family: CircularStd-Book, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    padding-top: 0 !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    overflow: hidden;
    min-height: 100vh;
}

div#header, #sidebar.sidebar, .breadcrumb, #progress-back, #controls-wrapper, #chatBotBtn, .ui-datepicker {
    display: none !important;
}

#page-container #content {
    margin-left: 0 !important;
}

#content .spinner {
    left: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.hide {
    display: none !important;
}

/* === Split-Screen Container === */
.login-split-container {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* === LEFT: Branding Panel === */
.login-brand-panel {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    overflow: hidden;
    min-width: 0;
}

.login-brand-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(214, 170, 8, 0.75) 100%);
    z-index: 1;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 480px;
    -webkit-animation: loginFadeInUp 0.8s ease-out;
    animation: loginFadeInUp 0.8s ease-out;
}

.login-brand-logo {
    width: 220px;
    height: auto;
    margin-bottom: 32px;
}

.login-brand-title {
    font-size: 42px !important;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.login-brand-tagline {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 48px;
    line-height: 1.5;
}

.login-brand-features {
    text-align: left;
    display: inline-block;
}

.login-brand-feature {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-brand-feature:last-child {
    border-bottom: none;
}

.login-brand-feature i {
    font-size: 20px;
    color: #fecc16;
    width: 28px;
    text-align: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 14px;
}

.login-brand-feature span {
    display: inline-block;
}

/* === RIGHT: Form Panel === */
.login-form-panel {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 480px;
    flex: 0 0 480px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px;
    -webkit-box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
    -webkit-animation: loginFadeIn 0.6s ease-out;
    animation: loginFadeIn 0.6s ease-out;
}

/* === Form Header === */
.login-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-form-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.login-form-subtitle {
    font-size: 14px !important;
    color: #6b7280;
    margin: 0;
}

/* === Error Message === */
.login-error-msg {
    display: block;
    font-size: 13px !important;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    text-align: left;
}

/* === Form Fields === */
.login-field-group {
    margin-bottom: 22px;
}

.login-label {
    display: block;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151;
    margin-bottom: 6px;
}

.login-input-wrapper {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 15px;
    z-index: 1;
    pointer-events: none;
}

/* Input fields - using high specificity + !important to override style.css and Bootstrap */
.login-split-container .login-input,
.login-form-panel .login-input,
input.login-input[type="text"],
input.login-input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 44px !important;
    font-family: CircularStd-Book, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    background: #f9fafb !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    outline: none !important;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: normal !important;
}

.login-split-container .login-input:focus,
.login-form-panel .login-input:focus,
input.login-input[type="text"]:focus,
input.login-input[type="password"]:focus {
    border-color: #d6aa08 !important;
    background: #ffffff !important;
    -webkit-box-shadow: 0 0 0 3px rgba(214, 170, 8, 0.15);
    box-shadow: 0 0 0 3px rgba(214, 170, 8, 0.15);
    color: #1f2937 !important;
    height: 48px !important;
}

.login-input::-webkit-input-placeholder {
    color: #9ca3af;
}

.login-input::-moz-placeholder {
    color: #9ca3af;
}

.login-input:-ms-input-placeholder {
    color: #9ca3af;
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-password-toggle {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.login-password-toggle:hover {
    color: #6b7280;
}

/* === Actions Row === */
.login-actions-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.login-forgot-link {
    font-size: 13px !important;
    font-weight: 600;
    color: #d6aa08;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.login-forgot-link:hover,
.login-forgot-link:focus {
    color: #b8920a;
    text-decoration: underline;
}

/* === Submit Button === */
.login-btn-submit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    font-family: CircularStd-Book, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #d6aa08 0%, #fecc16 100%) !important;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    -webkit-box-shadow: 0 4px 14px rgba(214, 170, 8, 0.35);
    box-shadow: 0 4px 14px rgba(214, 170, 8, 0.35);
    letter-spacing: 0.5px;
    padding: 0 20px;
    text-align: center;
}

.login-btn-submit:hover {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 6px 20px rgba(214, 170, 8, 0.45);
    box-shadow: 0 6px 20px rgba(214, 170, 8, 0.45);
    color: #ffffff !important;
}

.login-btn-submit:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-box-shadow: 0 2px 8px rgba(214, 170, 8, 0.3);
    box-shadow: 0 2px 8px rgba(214, 170, 8, 0.3);
}

.login-btn-submit .fa-circle-o-notch {
    font-size: 16px;
}

.login-btn-text {
    display: inline-block;
}

/* === Footer === */
.login-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.login-footer span {
    font-size: 12px !important;
    color: #9ca3af;
}

.login-footer a {
    color: #d6aa08;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    color: #b8920a;
    text-decoration: underline;
}

/* === Unauthorized Access === */
.login-unauthorized {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #1a1a2e;
    z-index: 100;
    padding: 40px;
}

.login-unauthorized-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    max-width: 600px;
}

.login-unauthorized-inner > * + * {
    margin-left: 32px;
}

.login-unauthorized-icon {
    width: 120px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.login-unauthorized-text h1 {
    font-size: 32px !important;
    color: #ffffff;
    margin: 0 0 12px;
}

.login-unauthorized-text p {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* === Choose Role Page (preserved from original) === */
.ChooseRolList .logo-section {
    padding: 20px;
    background: #9fa0b2;
}

.spread-heading {
    text-transform: uppercase;
    margin-top: 40px;
    letter-spacing: 10px;
}

.ChooseRolList .container-fluid {
    position: relative;
    z-index: 5;
    height: 100vh;
    background: #2a2559;
    background-size: cover;
}

.ChooseRolList .roles {
    background-color: transparent !important;
    white-space: normal;
}

.ChooseRolList .roles:focus {
    outline: none;
}

.absolute-top-right {
    position: absolute;
    top: 60px;
    right: 60px;
}

.ChooseRolList .circle.circle-xl {
    width: 50px;
    height: 50px;
    padding: 10px 15px;
    font-size: 24px;
    line-height: 1.1;
    border-radius: 35px;
    display: inline-block;
    color: #4cb3d8;
    border: 1px solid #4cb3d8;
    text-align: center;
}

.ChooseRolList .login-poweredby-box a:hover,
.ChooseRolList .login-poweredby-box a:focus {
    color: #4cb3d8;
}

.justify-content-center {
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

.SolutionDesigner, .Solution, .Learner, .Admin, .Supervisor, .Incharge, .Instructor, .Student, .new-role-img {
    width: 130px;
    height: 130px;
    border-radius: 100px;
}

.role-icon {
    width: 140px;
    height: 140px;
    border: 8px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.role-icon:hover {
    border: 8px solid #ffffff;
    cursor: pointer;
}

.role-label {
    margin-top: 20px !important;
}

.Learner, .Student {
    background-image: url(../images/role/Learner.svg);
}

.SolutionDesigner, .Solution, .Instructor {
    background-image: url(../images/role/Solution-Designer.svg);
}

.Supervisor {
    background-image: url(../images/role/Supervisor.svg);
}

.Admin {
    background-image: url(../images/CR-Admin.png);
}

.Incharge {
    background-image: url(../images/CR-Incharge.png);
}

.new-role-img {
    background-image: url(../images/role/banyanpro-st.svg);
}

.cr-bg {
    border: 8px solid rgba(255, 0, 0, 0);
    border-radius: 50%;
    padding: 7px;
}

.mx-auto {
    margin: 0 auto;
}

/* === Tooltips === */
.tooltips {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* === Change Password (loginChangePassword.html) === */
.changepwd {
    background-color: #fff;
    padding: 20px;
}

.errorMessage {
    padding: 5px;
    color: #ff0000;
    font-size: 12px;
    text-align: justify;
}

/* === Sweet Alert Overrides === */
.sweet-alert h2 {
    font-family: CircularStd-Book, sans-serif;
    font-size: 16px !important;
    margin: 0;
}

.sweet-alert p {
    font-family: CircularStd-Book, sans-serif;
    font-size: 16px !important;
    font-weight: 600;
}

.sweet-alert button {
    font-family: CircularStd-Book, sans-serif;
    padding: 7px 19px;
    background-color: #d6aa08 !important;
    font-size: 12px;
}

/* === Already Logged In Snackbar === */
#alreadyLoggedIn.ng-hide {
    visibility: hidden;
}

#alreadyLoggedIn {
    visibility: visible;
    -webkit-animation: loginSlideIn 0.5s ease-out;
    animation: loginSlideIn 0.5s ease-out;
    min-width: 380px;
    background-color: #d6aa08;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px 24px;
    position: fixed;
    z-index: 1000;
    right: 24px;
    top: 24px;
    font-family: CircularStd-Book, sans-serif;
    font-size: 15px !important;
    -webkit-box-shadow: 0 4px 16px rgba(214, 170, 8, 0.4);
    box-shadow: 0 4px 16px rgba(214, 170, 8, 0.4);
}

/* === Animations === */
@-webkit-keyframes loginFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes loginFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@-webkit-keyframes loginFadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(24px);
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes loginFadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(24px);
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes loginSlideIn {
    from {
        opacity: 0;
        -webkit-transform: translateX(40px);
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}
@keyframes loginSlideIn {
    from {
        opacity: 0;
        -webkit-transform: translateX(40px);
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

/* === Responsive === */
@media only screen and (max-width: 768px) {
    .login-split-container {
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
        flex-direction: column !important;
    }

    .login-brand-panel {
        min-height: 260px;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }

    .login-brand-content {
        padding: 32px 24px;
    }

    .login-brand-title {
        font-size: 28px !important;
    }

    .login-brand-tagline {
        margin-bottom: 24px;
        font-size: 14px !important;
    }

    .login-brand-features {
        display: none;
    }

    .login-form-panel {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 32px 24px;
    }

    body {
        overflow: auto !important;
    }
}

@media only screen and (max-width: 576px) {
    .login-brand-panel {
        min-height: 200px;
    }

    .login-brand-logo {
        width: 100px;
        margin-bottom: 16px;
    }

    .login-brand-title {
        font-size: 24px !important;
    }

    .login-form-panel {
        padding: 24px 16px;
    }

    .login-form-title {
        font-size: 22px !important;
    }

    .login-split-container .login-input,
    .login-form-panel .login-input {
        height: 44px !important;
    }

    .login-btn-submit {
        height: 46px;
        font-size: 15px !important;
    }

    .login-unauthorized-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }

    .login-unauthorized-inner > * + * {
        margin-left: 0;
        margin-top: 24px;
    }

    .login-unauthorized-icon {
        width: 80px;
    }
}
