/* PTI LiveSource – Modern login card layout */

/* Reset-ish + base font */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Full-screen gradient background */
body.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004080 0%, #0090ff 100%);
}

/* Wrapper to constrain width */
.login-wrapper {
    width: 100%;
    max-width: 940px;
    padding: 20px;
}

/* Main login card */
.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    min-height: 420px;
}

/* LEFT SIDE – form content */
.login-left {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

/* Logo + product name row */
.login-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.login-logo {
    height: 48px;
    width: auto;
}

.login-product-name {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
}

.login-company {
    font-weight: 700;
}

.login-system {
    font-weight: 500;
    color: #004080;
}

/* Titles */
.login-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2933;
}

.login-subtitle {
    margin: 0 0 8px;
    font-size: 14px;
    color: #6b7b93;
}

/* Form layout */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.login-label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2933;
}

/* Inputs – override any older global input styles */
body.login-body .login-input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #d0d7e2;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

body.login-body .login-input:focus {
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.16);
    background-color: #f7fbff;
}

/* Message / extra row */
.login-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin-top: 4px;
}

.login-message {
    font-size: 13px;
    color: #cc0000;
}

.login-message img {
    vertical-align: middle;
}

/* Primary button */
.login-button {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #0073e6 0%, #00a2ff 100%);
    box-shadow: 0 10px 20px rgba(0, 115, 230, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 115, 230, 0.4);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 115, 230, 0.35);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

/* Small footer line */
.login-footer-text {
    margin-top: 24px;
    font-size: 12px;
    color: #9fa9ba;
}

/* RIGHT SIDE – illustration / branding */
.login-right {
    position: relative;
    background: linear-gradient(135deg, #0073e6 0%, #00b5ff 40%, #48d1ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-right-overlay {
    text-align: center;
    color: #ffffff;
    max-width: 260px;
}

.login-circle-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(0, 0, 0, 0.1);
}

.login-circle-logo img {
    width: 70%;
    height: auto;
}

.login-right-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.login-right-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive: stack panels on smaller devices */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 28px 22px 22px;
    }

    .login-right {
        display: none; /* Hide illustration on very small screens */
    }
}
