/* Poczta FG.pl — elegancki branding Elastic spójny z ekosystemem fg.pl (Light & Dark). */

#layout-menu,
#layout-menu .popover-header,
html.dark-mode #layout-menu,
html.dark-mode #layout-menu .popover-header {
    background: #0f172a;
}

html #layout-menu #taskmenu a,
html #layout-menu .special-buttons a {
    color: #cbd5e1;
}

html #layout-menu #taskmenu a:hover,
html #layout-menu .special-buttons a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

html #layout-menu #taskmenu a.selected,
html.dark-mode #layout-menu #taskmenu a.selected {
    color: #ffffff;
    background: #059669;
}

html #layout-menu #taskmenu a.selected:before {
    color: #ffffff;
}

html #layout-menu #taskmenu a.compose {
    color: #34d399;
}

#layout-menu img#logo {
    width: auto;
    height: 46px;
    max-width: 58px;
    max-height: 46px;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

@media (min-width: 481px) and (max-width: 1024px) {
    #layout-menu img#logo {
        height: 34px;
        max-height: 34px;
        max-width: 44px;
    }
}

/* Ekran logowania: głęboki granat/obsydian z subtelną szmaragdową poświatą */
body.task-login #layout-content,
html.dark-mode body.task-login #layout-content {
    background:
        radial-gradient(ellipse 62% 45% at 50% 0%, rgba(16, 185, 129, 0.20) 0%, rgba(14, 165, 233, 0.06) 45%, rgba(15, 23, 42, 0) 75%),
        linear-gradient(180deg, #0f172a 0%, #090d16 100%);
}

body.task-login #logo {
    top: clamp(24px, 7vh, 72px);
    width: 96px;
    height: 96px;
    max-width: 112px;
    max-height: 112px;
    margin-bottom: 0;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

body.task-login #login-form {
    top: calc(clamp(24px, 7vh, 72px) + 16px);
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    padding: 30px 32px 22px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

html.dark-mode body.task-login #login-form {
    background: #111827;
    border-color: #1f2937;
}

.fg-login-head {
    margin: 0 0 22px;
    text-align: center;
}

.fg-login-head .fg-kicker {
    margin: 0 0 6px;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fg-login-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.fg-login-head p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

html.dark-mode .fg-login-head .fg-kicker {
    color: #34d399;
}

html.dark-mode .fg-login-head h2 {
    color: #f8fafc;
}

html.dark-mode .fg-login-head p {
    color: #94a3b8;
}

body.task-login #login-form table td {
    padding-top: 0;
    padding-bottom: 12px;
}

body.task-login #login-form .input-group,
body.task-login #login-form .form-control {
    min-height: 48px;
}

body.task-login #login-form .form-control {
    font-size: 16px;
    border-radius: 0 10px 10px 0;
}

body.task-login #login-form .input-group-text {
    min-width: 46px;
    justify-content: center;
    border-radius: 10px 0 0 10px;
}

body.task-login #rcmloginsubmit,
html.dark-mode body.task-login #rcmloginsubmit {
    min-height: 50px;
    margin-top: 4px;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    border-color: #059669;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.30);
}

body.task-login #rcmloginsubmit:hover,
html.dark-mode body.task-login #rcmloginsubmit:hover {
    background: linear-gradient(135deg, #047857 0%, #0369a1 100%);
    border-color: #047857;
}

body.task-login #rcmloginsubmit:focus,
html.dark-mode body.task-login #rcmloginsubmit:focus {
    box-shadow: 0 0 0 0.22rem rgba(16, 185, 129, 0.35);
}

body.task-login #login-footer {
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
}

html.dark-mode body.task-login #login-footer {
    color: #94a3b8;
}

@media (max-width: 480px) {
    body.task-login #logo {
        width: 80px;
        height: 80px;
    }
    body.task-login #login-form {
        padding: 24px 20px 18px;
    }
}
