﻿html, body {
    height: 100%;
    overflow: hidden;
}

.app-main {
    min-height: 100vh;
    background: linear-gradient( rgba(86, 136, 245, 0.25), rgba(82, 123, 235, 0.4) ), url("../img/sky.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.company-header .kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.login-brand {
    text-align: center;
    background: transparent;
    padding: 0;
    margin: 0;
}

.login-logo {
    height: 64px;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.emi-title {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--emi-brand);
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    margin: 0.7rem 0;
}

    .divider-text::before,
    .divider-text::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #ccc;
        margin: 0 0.5rem;
    }

.login-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.login-card {
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    background: white;
    backdrop-filter: blur(8px);
    border-radius: var(--auth-card-radius);
    box-shadow: var(--auth-card-shadow);
    overflow-y: auto;
}

.company-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding: 1.3rem;
}

.login-card .form-control {
    height: 44px;
    border-radius: 10px;
}

.login-card .form-check-input:checked {
    background-color: var(--dash-primary);
    border-color: var(--dash-primary);
}

.login-card .form-check-label {
    font-size: 0.9rem;
    margin: 0;
}

.primary-action {
    min-height: 44px;
    height: 48px;
    width: 100%;
    padding: 0 1.25rem;
    margin: 0.5rem 0;
    background: var(--dash-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.05s ease, filter 0.15s ease;
}

    .primary-action:hover {
        background: var(--dash-primary-hover, var(--dash-primary));
        filter: brightness(1.05);
    }

    .primary-action:active {
        transform: translateY(1px);
    }

    .primary-action:focus-visible {
        outline: 2px solid var(--dash-primary);
        outline-offset: 2px;
    }

    .primary-action:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

@media (max-width: 480px) {
    .company-page {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .login-card {
        max-width: 100%;
        max-height: calc(100dvh - 3rem);
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    .login-header h1,
    .company-header h1 {
        font-size: 1.3rem;
    }
}

@media (max-height: 640px) {
    .login-header,
    .company-header {
        margin-bottom: 1rem;
    }

    .login-card {
        padding: 1rem 1.25rem;
    }
}

.login-header {
    text-align: center;
}

    .login-header h1 {
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: 0.05em;
    }

    .login-header p {
        font-size: 0.9rem;
    }

.validation-message,
.validation-message span,
span.validation-message {
    color: var(--auth-error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}
