/* ── Codeware SSO – hlavní styly ──────────────────────────────────────────── */

:root {
    --cdw-orange:  #e05500;
    --cdw-dark:    #1c2b3a;
    --cdw-darker:  #13202d;
    --cdw-mid:     #2c4159;
    --cdw-light:   #f4f7fa;
    --cdw-border:  #dde3ea;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

body.sso-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--cdw-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sso-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Levý panel – branding ───────────────────────────────────────────────── */

.sso-panel-left {
    flex: 0 0 420px;
    background: linear-gradient(160deg, var(--cdw-dark) 0%, var(--cdw-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sso-panel-left::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224,85,0,.18) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    pointer-events: none;
}

.sso-branding {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.sso-sphere {
    height: 120px;
    filter: drop-shadow(0 8px 24px rgba(224,85,0,.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.sso-brand-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 1.5rem 0 .5rem;
}

.sso-brand-tagline {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    letter-spacing: 1px;
    margin: 0;
}

/* ── Pravý panel – formulář ──────────────────────────────────────────────── */

.sso-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--cdw-light);
}

.sso-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.sso-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cdw-dark);
    margin-bottom: .25rem;
}

.sso-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: .9rem;
}

/* ── Tlačítko Microsoft ──────────────────────────────────────────────────── */

.btn-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #2f2f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: .7rem 1rem;
    font-size: .95rem;
    font-weight: 500;
    transition: background .15s;
    text-decoration: none;
}

.btn-ms:hover {
    background: #1a1a1a;
    color: #fff;
}

.ms-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Oddělovač ───────────────────────────────────────────────────────────── */

.sso-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #adb5bd;
    font-size: .8rem;
}

.sso-divider::before,
.sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cdw-border);
}

/* ── LDAP formulář ───────────────────────────────────────────────────────── */

.sso-ldap-form .form-label {
    font-size: .875rem;
    color: #495057;
    font-weight: 500;
}

.sso-ldap-form .form-control {
    border-color: var(--cdw-border);
    border-radius: 6px;
    padding: .55rem .85rem;
}

.sso-ldap-form .form-control:focus {
    border-color: var(--cdw-orange);
    box-shadow: 0 0 0 3px rgba(224,85,0,.15);
}

.sso-ldap-form .btn-primary {
    background: var(--cdw-orange);
    border-color: var(--cdw-orange);
    border-radius: 6px;
    padding: .6rem 1.5rem;
    font-weight: 500;
    transition: background .15s, transform .1s;
}

.sso-ldap-form .btn-primary:hover {
    background: #c44b00;
    border-color: #c44b00;
}

/* ── Profil – avatar ─────────────────────────────────────────────────────── */

.sso-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cdw-orange), #ff8c42);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.sso-card-header {
    background: var(--cdw-dark);
    color: #fff;
    font-weight: 500;
    border-radius: 0;
    padding: .85rem 1.25rem;
}

/* ── Bootstrap overrides ─────────────────────────────────────────────────── */

.btn-outline-secondary {
    border-color: var(--cdw-border);
    color: #495057;
}

.btn-outline-secondary:hover {
    background: var(--cdw-dark);
    border-color: var(--cdw-dark);
    color: #fff;
}

/* ── Responzivita ────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .sso-panel-right {
        padding: 1.5rem 1rem;
        align-items: flex-start;
        padding-top: 3rem;
    }
}
