*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: rgba(0, 0, 0, 0.87);
    background: #f5f5f5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    padding: 24px 24px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10%;
    overflow: hidden;
}

.card-branding h1 {
    text-align: center;
    color: #0b61d6;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

.promo {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 24px;
}

.promo-title {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.15;
    font-weight: 400;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.promo-em {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.promo-points {
    margin: 8px 0 12px 22px;
}

    .promo-points li {
        margin: 8px 0;
    }

.list-bold {
    font-weight: 600;
}

.promo-copy {
    margin-top: 8px;
    color: rgba(0,0,0,.75);
    max-width: 620px;
}

.auth {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.auth-card-modern {
    width: 100%;
    max-width: 440px;
    padding: 64px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(19, 103, 230, 0.12), 0 8px 24px rgba(2, 18, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    position: relative;
    overflow: hidden;
}

    .auth-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(19, 103, 230, 0.2), transparent);
    }

.auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.auth-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(19, 103, 230, 0.2));
    transition: transform 0.3s ease;
}

    .auth-logo:hover {
        transform: scale(1.05);
    }

.auth-logo-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(19, 103, 230, 0.25) 0%, transparent 70%);
    border-radius: 20px;
    opacity: 0;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-logo-glow,
    .login-button-modern::before,
    .key-icon,
    .arrow-icon {
        animation: none !important;
        transition: none !important;
    }

    .auth-logo:hover {
        transform: none;
    }
}

.auth-tagline {
    text-align: center;
    margin-bottom: 28px;
}

.auth-tagline-text {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.5;
}

.auth-action-container {
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .login-split {
        grid-template-columns: 1fr 380px;
        gap: 36px;
    }
}

@media (max-width: 1080px) {
    .login-split {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
    }

    .promo {
        order: 2;
    }

    .auth {
        order: 1;
    }

    .promo-title {
        font-size: clamp(28px, 6vw, 42px);
        line-height: 1.15;
    }

    .promo-copy {
        display: none;
    }
}

body:has(.login-split) {
    overflow: hidden;
}

.header {
    background: transparent;
    color: #fff;
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    border-radius: 0;
    margin: 0;
    flex-shrink: 0;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    width: 100%;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b61d6;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(1, 58, 150, 0.28);
}

.logo {
    width: 32px;
    height: 32px;
    mix-blend-mode: lighten;
    border-radius: 6px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

    .icon-btn:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }

    .icon-btn svg {
        width: 38px;
        height: 38px;
        display: block;
    }

.signup-container {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
    background: linear-gradient(180deg, #f7fafc 0%, #eef2f7 60%, #e8eef7 100%);
    position: relative;
}

    .signup-container::before {
        content: "";
        inset: -10% -20% auto -20%;
        height: 50vh;
        background: radial-gradient(closest-side, rgba(0, 94, 207, 0.08), transparent 70%);
        pointer-events: none;
    }

.signup-card {
    width: 100%;
    max-width: 520px;
    border: 1px solid #e6ebf2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-header {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
    background: transparent;
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.card-subtitle {
    margin: 0.5rem 0 0 0;
    color: #475569;
    font-size: 0.95rem;
}

.auth-card-modern .card-header {
    margin-bottom: 1rem;
}

.auth-card-modern .card-title {
    font-size: 1.35rem;
}

.auth-card-modern .card-subtitle {
    font-size: 0.95rem;
}

.login-button-modern {
    width: 100%;
    height: 58px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #1367e6 0%, #0a57c6 50%, #0052d9 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(19, 103, 230, 0.28), 0 4px 12px rgba(19, 103, 230, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

    .login-button-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
        transition: left 0.6s ease;
    }

    .login-button-modern:hover::before {
        left: 100%;
    }

    .login-button-modern:hover:not(:disabled) {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #1570ef 0%, #0d60e0 50%, #005ce6 100%);
        box-shadow: 0 12px 28px rgba(19, 103, 230, 0.36), 0 6px 16px rgba(19, 103, 230, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .login-button-modern:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 6px 16px rgba(19, 103, 230, 0.24), 0 2px 8px rgba(19, 103, 230, 0.16);
    }

    .login-button-modern:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(19, 103, 230, 0.2), 0 8px 20px rgba(19, 103, 230, 0.28), 0 4px 12px rgba(19, 103, 230, 0.16);
    }

    .login-button-modern:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none !important;
    }

    .login-button-modern .key-icon,
    .login-button-modern .arrow-icon {
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .login-button-modern:hover:not(:disabled) .key-icon {
        transform: rotate(-15deg) scale(1.1);
    }

    .login-button-modern:hover:not(:disabled) .arrow-icon {
        transform: translateX(4px);
    }

    .login-button-modern span {
        flex: 1;
        text-align: center;
    }

.spinner-modern {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top: 2.5px solid #ffffff;
    border-radius: 50%;
    animation: spin-modern 0.8s linear infinite;
}

@keyframes spin-modern {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.shield-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}

.trust-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: -0.01em;
}

.oidc-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .oidc-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

    .login-button:disabled:hover {
        transform: none;
        box-shadow: none;
    }

.login-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(19, 103, 230, 0.24), 0 10px 22px rgba(19, 103, 230, 0.26);
}

@media (max-width: 1080px) {
    .auth-card-modern {
        max-width: 480px;
        margin: 8px auto 0;
        padding: 28px 24px;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 640px) {
    .auth-card-modern {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 16px;
        margin-top: 0;
    }

    .login-button-modern {
        height: 54px;
        font-size: 1rem;
        padding: 0 1.25rem;
    }

    .auth-brand {
        margin-bottom: 20px;
    }

    .auth-tagline {
        margin-bottom: 24px;
    }

    .auth-tagline-text {
        font-size: 14px;
    }

    .auth-logo {
        width: 52px;
        height: 52px;
    }

    .auth-card-modern .card-title {
        font-size: 1.25rem;
    }

    .auth-card-modern .card-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .signup-container {
        padding: 1rem;
    }

    .signup-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
}
