* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f1620;
    display: flex;
    height: 100vh;
    background: #0f1620;
    position: relative;
    overflow: hidden;
}


.login-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.login-left {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-right {
    width: 60%;
    background-color: #0f1620;                
    background-image: url("../img/logo_white.svg");
    background-size: 72%;                      
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}


.logo img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.quote {
    color: white;
    font-size: 28px;
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
    font-weight: 300;
}

.quote-author {
    color: #e0e0e0;
    font-size: 18px;
    margin-top: 20px;
    text-align: right;
    font-style: italic;
}

.cybersecurity-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='matrix' width='50' height='50' patternUnits='userSpaceOnUse'%3E%3Ctext x='0' y='12' font-size='10' fill='%23ffffff'%3E10%3C/text%3E%3Ctext x='15' y='25' font-size='10' fill='%23ffffff'%3E01%3C/text%3E%3Ctext x='30' y='38' font-size='10' fill='%23ffffff'%3E11%3C/text%3E%3Ctext x='45' y='8' font-size='10' fill='%23ffffff'%3E00%3C/text%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23matrix)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0062E6, #33AEFF);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 40px 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #0062E6; /* brand */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
    background-color: #f8fafc;
}

/* focus ring → brand blue */
input:focus {
    border: 1px solid #0062E6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 98, 230, 0.12);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 38px;
    color: #5f6368;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 42px;
    color: #5f6368;
    cursor: pointer;
    font-size: 14px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input {
    width: auto;
    margin-right: 8px;
}

/* links → brand */
.forgot-password,
.secondary-link {
    color: #0062E6;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}
.forgot-password:hover,
.secondary-link:hover {
    color: #0053c7;
    text-decoration: underline;
}

/* primary button → brand gradient */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #0062E6, #0053c7);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

button:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(100, 100); opacity: 0; }
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #5f6368;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #dadce0;
}

.or-divider span {
    padding: 0 15px;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: #f1f3f4;
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #5f6368;
}

.signup-link {
    color: #0062E6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.signup-link:hover {
    color: #0053c7;
    text-decoration: underline;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: 12px;
    color: #5f6368;
}

.security-badge svg {
    margin-right: 6px;
}

@media (max-width: 992px) {
    .login-left { width: 100%; }
    .login-right { display: none; }
}

@media (max-width: 480px) {
    .container {
        border-radius: 0;
        padding: 30px 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* social block */
.social-login-wrapper { margin-top: 2rem; text-align: center; }
.social-divider { display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.social-divider span { padding: 0 1rem; font-weight: 500; color: #777; position: relative; }
.social-divider:before, .social-divider:after { content: ""; flex: 1; height: 1px; background: #ddd; }
.social-links { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; }
.social-links li { margin: 0 0.5rem; }

/* SAML button already uses brand gradient — keep */
.saml-button {
    display: inline-block;
    background: linear-gradient(to right, #0062E6, #33AEFF);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 98, 230, 0.2);
}
.saml-button:hover {
    background: linear-gradient(to right, #0053c7, #2a9ddd);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.auth-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 6px;
    box-sizing: border-box;
}

.alert {
    margin-bottom: 1.5rem;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.alert-success { background: #e6ffed; color: #2c662d; }
.alert-error   { background: #ffe6e6; color: #a42828; }

.button-icon svg,
.secondary-link svg { vertical-align: middle; }

    .forwarding-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0f1620;
    text-align: center;
    padding: 2rem;
    color: #2d3748;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.8s ease-in-out;
}

.forwarding-page .logo img { width: 64px; height: 64px; margin-bottom: 1.5rem; }
.forwarding-page h1 { font-size: 1.75rem; margin-bottom: 0.5rem; color: #2d3748; }
.forwarding-page p  { font-size: 1rem; color: #4a5568; }

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}
.kc-login, .kc-login-container, #kc-container, #kc-container-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.redirect-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f1620;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 9999;
}

.redirect-box {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 350px;
    animation: fadeIn 0.8s ease-in-out;
}

.redirect-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    background-image: url("../img/logo_white.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.redirect-title   { font-size: 1.8rem; color: #2c3e50; font-weight: 600; margin-bottom: 0.5rem; }
.redirect-message { font-size: 1rem; color: #6c757d; margin-bottom: 2rem; }

.redirect-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #0062E6; /* brand */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.expired-info { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 20px; margin: 20px 0; }
.expired-info ul { margin: 10px 0 0 0; padding-left: 20px; }
.expired-info li { margin: 5px 0; color: #6c757d; }
.help-text { margin-top: 30px; padding: 15px; background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 6px; text-align: center; }
.help-text p { margin: 0; color: #856404; }
.btn { display: inline-block; padding: 12px 24px; margin: 5px; text-decoration: none; border-radius: 6px; font-weight: 500; text-align: center; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary { background: #0062E6; color: white; }
.btn-primary:hover { background: #0053c7; transform: translateY(-1px); }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #545b62; transform: translateY(-1px); }

.button-group { display: flex; flex-direction: column; gap: 10px; margin: 25px 0; }
@media (min-width: 480px) { .button-group { flex-direction: row; justify-content: center; } }