/* Login page only — loaded so /login/ can use a strict CSP (no style-src 'unsafe-inline'). */

html.login-page,
body.login-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.login-page * {
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.login-left {
    width: 50%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.login-left-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: min(100%, 480px);
    max-width: 480px;
}

.login-right {
    width: 50%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f2f7;
}

.login-right-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.logo-section {
    flex-shrink: 0;
    margin-bottom: 12px;
    padding-top: 28px;
    width: min(100%, 480px);
    max-width: 480px;
}

.logo-container {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.logo-icon {
    display: block;
    line-height: 0;
    width: fit-content;
    max-width: 100%;
}

.logo-icon img {
    display: block;
    width: auto;
    height: 132px;
    max-width: 100%;
    object-fit: contain;
    object-position: left top;
}

.welcome-section {
    margin-bottom: 12px;
}

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    color: #760BC1;
    margin-bottom: 0;
    line-height: 1.2;
}

.login-form {
    width: 100%;
    max-width: 480px;
}

.form-group-custom {
    margin-bottom: 12px;
}

.form-label-custom {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 2px solid #E4E3EB;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #212030;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-control-custom:focus {
    outline: none;
    border-color: #760BC1;
    box-shadow: 0 0 0 4px rgba(118, 11, 193, 0.1);
}

.form-control-custom::placeholder {
    color: #ADB3BB;
}

.forgot-password-link {
    text-align: right;
    margin-bottom: 10px;
}

.forgot-password-link a {
    color: #760BC1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #5E5A80;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #760BC1 0%, #5E5A80 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(118, 11, 193, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 11, 193, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.signup-link-section {
    text-align: center;
    margin-top: 14px;
    color: #495057;
    font-size: 13px;
}

.signup-link-section a {
    color: #760BC1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link-section a:hover {
    color: #5E5A80;
    text-decoration: underline;
}

.copyright {
    margin-top: auto;
    width: min(100%, 480px);
    max-width: 480px;
    text-align: center;
    color: #ADB3BB;
    font-size: 11px;
    flex-shrink: 0;
}

@media (max-height: 860px) {
    .login-left {
        padding: 0 20px 10px;
    }

    .logo-section {
        padding-top: 20px;
    }

    .logo-icon img {
        height: 96px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .form-group-custom {
        margin-bottom: 10px;
    }

    .form-control-custom {
        padding: 9px 12px;
        font-size: 14px;
    }

    .login-btn {
        padding: 11px;
        font-size: 14px;
    }

    #recaptcha-container {
        transform: scale(0.85);
        height: 66px;
    }
}

.error-message {
    background-color: #FFF3F3;
    border: 2px solid #FF6B6B;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #C92A2A;
    font-size: 14px;
}

.ajax-msg-success {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 12px 16px;
    color: #155724;
    font-size: 14px;
}

.field-error {
    color: #C92A2A;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .login-left {
        width: 100%;
        height: auto;
        max-height: none;
        padding: 0 20px 20px;
        overflow-y: auto;
    }

    .login-right {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 30px 20px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .logo-text {
        font-size: 24px;
    }
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #E4E3EB;
    padding: 20px 25px;
}

.modal-title {
    color: #760BC1;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 2px solid #E4E3EB;
    padding: 20px 25px;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.close {
    color: #495057;
    opacity: 0.5;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.close:hover {
    opacity: 1;
    color: #212030;
}

.terms-agreement {
    background-color: #E8F4FD;
    border: 1px solid #B3D9F2;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 0;
    text-align: center;
    font-size: 12px;
    color: #495057;
    line-height: 1.4;
}

.terms-agreement a {
    color: #760BC1;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-agreement a:hover {
    color: #5E5A80;
}

.nda-checkbox-label {
    margin-bottom: 0;
}

.nda-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(118, 11, 193, 0.3);
}

/* Former inline styles (strict CSP) */
.login-section-spaced {
    margin-bottom: 10px;
}

#recaptcha-container {
    transform: scale(0.92);
    transform-origin: left top;
    height: 72px;
    margin-bottom: 0;
}

.nda-checkbox-label-row {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.nda-checkbox-input {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.nda-modal-header {
    background: linear-gradient(135deg, #760BC1 0%, #5E5A80 100%);
    color: white;
    border-bottom: none;
}

.nda-modal-title {
    font-weight: 700;
    color: white;
    margin: 0;
}

.nda-modal-close {
    color: white;
    opacity: 0.8;
}

.nda-modal-body-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

.nda-modal-prose {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #495057;
}

.nda-modal-heading {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #760BC1;
    font-weight: 600;
}

.nda-modal-lead {
    font-weight: 600;
    color: #760BC1;
}

.nda-modal-footer-bar {
    border-top: 2px solid #E4E3EB;
}

.nda-modal-accept-line {
    font-weight: 600;
    margin-bottom: 0;
}

.fp-intro-text {
    color: #495057;
    font-size: 14px;
}

.fp-callout {
    background-color: #F3F2F7;
    border: 1px solid #E4E3EB;
    border-radius: 8px;
    padding: 12px 16px;
}

.fp-callout-text {
    color: #760BC1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
}

.fp-mailto {
    color: #760BC1;
    text-decoration: underline;
}
