/* ============================================
   ROOT MODUŁU START — pełna separacja stylów
============================================ */
.module-root.start-module {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

/* ============================================
   TŁO — pełny bleed (bez pasków / bez translate)
============================================ */
.start-module .login-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.start-module .login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ============================================
   OKNO LOGOWANIA — PREMIUM IMBEX STYLE
============================================ */
.start-module .login-box {
    position: absolute;
    top: calc(58% + 2cm);
    left: 50%;
    transform: translate(-50%, -50%);

    width: 300px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 24px);
    padding: 16px 22px 20px;
    box-sizing: border-box;
    overflow: auto;

    background: rgba(0, 20, 60, 0.25);
    border: 1px solid rgba(77,163,255,0.45);
    border-radius: 14px;

    backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 0 22px rgba(77,163,255,0.35);

    text-align: center;
    color: white;
}

/* LOGO */
.start-module .login-logo img {
    width: 92px;
    max-width: 100%;
    height: auto;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 12px rgba(77,163,255,0.85));
}

/* TYTUŁY */
.start-module .login-box h2 {
    margin: 0;
    font-size: 1.35em;
    text-shadow: var(--text-shadow);
}

.start-module .login-subtitle {
    margin: 2px 0 14px;
    font-size: 0.92em;
    opacity: 0.85;
}

/* ============================================
   POLA LOGOWANIA
============================================ */
.start-module .login-fields {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.start-module .login-fields input,
.start-module .login-fields #login-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.start-module .login-fields input {
    height: 38px;
    padding: 0 12px;
    line-height: 38px;

    border-radius: 8px;
    border: 1px solid rgba(77,163,255,0.45);
    background: rgba(255,255,255,0.12);
    color: white;

    font-size: 0.95em;
    outline: none;

    backdrop-filter: blur(8px);
    transition: 0.2s;
}

.start-module .login-fields input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 12px rgba(77,163,255,0.85);
}

/* ============================================
   PRZYCISK LOGOWANIA
============================================ */
.start-module #login-btn {
    height: 38px;
    padding: 0 12px;
    line-height: 38px;

    background: linear-gradient(135deg, var(--neon), #7fc4ff);
    border: none;
    border-radius: 8px;

    color: #002b60;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;

    box-shadow: 0 0 18px rgba(77,163,255,0.85);
    transition: 0.2s;
}

.start-module #login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(77,163,255,1);
}

/* ============================================
   BŁĘDY
============================================ */
.start-module .login-error {
    margin-top: 12px;
    color: #ff4d4d;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 80, 80, 0.85);
    opacity: 0;
    transition: 0.3s ease;
}

.start-module .login-error.show {
    opacity: 1;
}

.deploy-check-warning {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(120, 20, 20, 0.92);
    border: 1px solid #ff8080;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.deploy-check-warning a {
    display: block;
    margin-top: 6px;
    color: #9fd4ff;
    word-break: break-all;
}

/* ============================================
   ANIMACJE
============================================ */
.start-module .animate-in {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Shake */
@keyframes shake {
    0% { transform: translate(-50%, -50%) translateX(0); }
    25% { transform: translate(-50%, -50%) translateX(-8px); }
    50% { transform: translate(-50%, -50%) translateX(8px); }
    75% { transform: translate(-50%, -50%) translateX(-6px); }
    100% { transform: translate(-50%, -50%) translateX(0); }
}

.start-module .shake {
    animation: shake 0.4s ease;
}
