/* ======================================================
   REJESTRACJA 2.0
   ====================================================== */

.registerNameGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.registerDocumentRow{position:relative}.registerDocumentRow input{position:absolute;opacity:0;pointer-events:none}.registerDocumentRow input:checked+.registerCheck::after{content:'✓';display:block;color:#0b9f2a;font-size:34px;font-weight:900;line-height:.8}.registerDocButton{display:flex;align-items:center;justify-content:center;text-decoration:none}.galleryAvatarButton{display:block;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer}.galleryAvatarButton.selected{outline:4px solid #1683df;outline-offset:2px}.registerValidationSummary{margin-bottom:18px}.registerDocumentBody{overflow:auto}@media(max-width:800px){.registerNameGrid{grid-template-columns:1fr}}

.registerLayout{

    max-width:1500px;
    margin:40px auto;
    display:flex;
    gap:40px;
    justify-content:center;
    align-items:stretch;

}

.registerFormBox{
    width:680px;
    flex:none;
    background:#fff;
    border-radius:18px;
    padding:50px;
    box-shadow:
        0 0 45px rgba(0,0,0,.10),
        0 12px 35px rgba(0,0,0,.10);

}

.registerMascotBox{

    width:680px;
    flex:none;
    min-height:900px;

    background:#fff;
    border:1px solid rgba(0,0,0,.05);
    border-radius:18px;
    padding:50px;

    box-shadow:
        0 0 45px rgba(0,0,0,.10),
        0 12px 35px rgba(0,0,0,.10);

    position:relative;
    overflow:hidden;
}  
.registerLogo{
    display:block;
    max-width:360px;
    width:100%;
    margin:0 auto 25px;
}

.registerLead{
    font-size:16px;
    color:#666;
    line-height:1.45;
    margin-bottom:35px;
}

.registerMascot{
    width:100%;
    max-width:480px;
    height:auto;
}
/* ---------- Formularz ---------- */

#registrationForm{
    margin-top:40px;
}

#registrationForm .field{
    margin-bottom:22px;
}

#registrationForm label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:600;
    color:#444;
}

#registrationForm input[type=text],
#registrationForm input[type=password],
#registrationForm input[type=email]{

    width:100%;
    height:48px;
    padding:0 16px;
    border:1px solid #d7d7d7;
    border-radius:10px;
    font-size:16px;
    box-sizing:border-box;
    transition:.25s;
    background:#fff;}

#registrationForm input:focus{
    border-color:#1b73d1;
    box-shadow:0 0 0 4px rgba(27,115,209,.15);
    outline:none;}

.registerButton{
    width:100%;
    height:52px;
    border:0;
    border-radius:12px;
    background:#1b73d1;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}
.registerButton:hover{
    background:#0958b0;
}
.fieldInfo{
    margin:-3px 0 10px;
    font-size:12px;
    color:#8d8d8d;
}
.avatarPlaceholder{
    height:120px;
    margin:25px 0;
    border:2px dashed #d8d8d8;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#999;
    font-size:14px;
}
body.registration-page .c123{
    width:1500px !important;
    max-width:1600px !important;
    background:none;

}
body.registration-page .c12{
    width:1500px !important;
    background:none;
}
body.registration-page .c3{
    display:none;
}
body.registration-page .registerLayout{
    max-width:1450px;
    margin:0 auto;
}
.avatarChooser{
    margin:30px 0;
    padding:24px;
    border:1px solid #d7d7d7;
    border-radius:14px;
    background:#fafafa;
}

.avatarTitle{
    font-size:18px;
    font-weight:700;
    margin-bottom:4px;
}

.avatarInfo{
    color:#888;
    font-size:13px;
    margin-bottom:20px;
}

.avatarButtons{
    position: relative;
    display:flex;
    gap:12px;
    margin-bottom:25px;
}
#avatarError {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.avatarButton{
    flex:1;
    height:46px;
    border:none;
    border-radius:10px;
    background:#2f73c8;
    color:#fff;
    font-size:14px;
    cursor:pointer;
}

.avatarButton:hover{
    background:#1d62b8;
}

.avatarPreview{
    display:flex;
    justify-content:center;
}

.avatarPreview img{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid #d7d7d7;
    background:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.registerDocumentStage{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    background:#fff;
    z-index:10;
    overflow:hidden;
}

.registerDocumentHeader{
    padding:25px;
    font-size:24px;
    font-weight:700;
    border-bottom:1px solid #ececec;
}

.registerDocumentBody{
    flex:1;
    overflow-y:auto;
    padding:25px;
}
.registerDocumentPanel[hidden]{display:none}

.registerDocumentFooter{
    padding:25px;
    border-top:1px solid #ececec;
}

.registerAcceptButton{
    width:100%;
    height:48px;
    border:none;
    border-radius:10px;
    background:#2f73c8;
    color:#fff;
    font-size:16px;
    cursor:pointer;
}
.registerDocuments{

    margin:35px 0 25px;

    display:flex;
    flex-direction:column;

    gap:14px;

}
.registerDocButton{
    display:flex;
    align-items:center;
    justify-content:center;

    width:430px;

    height:38px;

    border:1px solid #bdbdbd;

    border-radius:8px;

    background:#dddddd;

    color:#000;

    text-align:center;

    padding:0;

    font-size:14px;

    cursor:pointer;

    transition:.2s;

    appearance:none;
    -webkit-appearance:none;

}
.registerDocButton:hover{

    background:#cfcfcf;

    border-color:#a8a8a8;

}
.registerTopBar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}
.registerTopBar a{
    text-decoration:none;
    color:#6f6f6f;
    font-size:14px;
    transition:.2s;
}
.registerTopBar a:hover{
    color:#2f73c8;
}
.registerMascotStage::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:8px;
    height:100%;
    background:linear-gradient(to left,
        rgba(0,0,0,.22),
        rgba(0,0,0,.10),
        transparent);
    pointer-events:none;
}
.registerDoor{

    position:absolute;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#fff;

    z-index:20;

    overflow:hidden;

    transition:transform .9s ease;

}
.registerDoor::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:10px;
    height:100%;
    background:linear-gradient(
        to right,
        rgba(0,0,0,.22),
        rgba(0,0,0,.08),
        transparent
    );
    pointer-events:none;
}
.registerDocumentsTitle{

    margin:35px 0 15px;

    font-size:16px;

    font-weight:600;

}

.registerDocumentRow{

    display:flex;

    align-items:center;

    gap:18px;

}

.registerCheck{

    width:34px;
    min-width:34px;

    font-size:34px;

    color:#0b9f2a;

    font-weight:bold;
    text-align:center;

}
.avatarGrid{

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:14px;

}

.galleryAvatar{

    width:100%;

    aspect-ratio:1;

    object-fit:cover;

    border-radius:12px;

    border:2px solid transparent;

    cursor:pointer;

    transition:.2s;

}

.galleryAvatar:hover{

    border-color:#2f73c8;

    transform:scale(1.05);

}
.avatarTabs{

    display:grid;

    width:100%;

    grid-template-columns:repeat(5,minmax(0,1fr));

    gap:10px;

    margin-bottom:20px;

    box-sizing:border-box;

}

.avatarTab{

    width:100%;

    height:42px;

    padding:0;

    margin:0;

    border:1px solid #d5d5d5;

    border-radius:8px;

    background:#f2f2f2;

    color:#000;

    font-size:14px;

    box-sizing:border-box;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:6px;

}
.avatarTab.active{

    background:#2f73c8;

    border-color:#2f73c8;

    color:#fff !important;

}
.avatarPage{

    display:none;

}

.avatarPage.active{

    display:block;

}
.avatarGalleryContainer{

    width:100%;

}
.passwordStrength{

    width:100%;

    height:8px;

    background:#e5e5e5;

    border-radius:10px;

    overflow:hidden;

    margin-top:10px;

}

#passwordStrengthBar{

    width:0;

    height:100%;

    background:#d40000;

    transition:.25s;

}

#passwordStrengthText{

    margin-top:8px;

    font-size:13px;

    color:#666;

}
#passwordMatchText{

    margin-top:8px;

    font-size:13px;

    font-weight:600;

}
.registerResetLine{
    text-align:right;
    margin:0 0 8px;

}

.registerReset{

    border:none;

    background:none;

    padding:0;

    color:#777;

    font-size:12px;

    cursor:pointer;

}

.registerReset:hover{

    color:#000;

    text-decoration:underline;

}
.fieldError{
    color:#d40000;
    font-size:13px;
    font-weight:600;
    margin-top:6px;
    line-height:1.4;
}
/* =========================================================
   REGULAMIN W FORMULARZU REJESTRACJI
   ========================================================= */

.registerRegulation{
    color:#1e293b;
    font-size:15px;
    line-height:1.65;
    padding:5px 8px 30px;
}

.registerRegulation h1{
    margin:0 0 8px;
    text-align:center;
    font-size:28px;
    line-height:1.2;
    font-weight:800;
    color:#102a41;
}

.registerRegulation .regVersion{
    text-align:center;
    font-size:14px;
    font-weight:600;
    color:#53677d;
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:2px solid #e3eaf1;
}

.registerRegulation h2{
    margin:30px 0 18px;
    padding:10px 12px;
    font-size:20px;
    line-height:1.3;
    font-weight:800;
    color:#102a41;
    background:#f3f7fb;
    border-left:4px solid #1f6390;
    border-radius:4px;
}

.registerRegulation h2:not(:first-of-type){
    border-top:1px solid #d9dfe5;
    padding-top:24px;
}

.registerRegulation p{
    margin:0 0 12px;
}

.registerRegulation .regLead{
    font-weight:700;
    font-size:16px;
    color:#263f58;
}

.registerRegulation .regDefinition{
    margin-bottom:10px;
}

.registerRegulation .regDefinition strong{
    display:inline-block;
    color:#183b59;
    font-weight:800;
}

.registerRegulation ul{
    margin:8px 0 15px 24px;
    padding:0;
}

.registerRegulation li{
    margin:5px 0;
    padding-left:3px;
}

.registerRegulation a{
    color:#075ea8;
    text-decoration:none;
    font-weight:600;
}

.registerRegulation a:hover{
    text-decoration:underline;
}

.registerRegulation .regContact{
    background:#f5f9fd;
    border:1px solid #dce7f1;
    border-radius:10px;
    padding:13px 16px;
    margin:10px 0 18px;
}

.registerRegulation .regContact strong{
    color:#183b59;
}

.registerRegulation .regImportant{
    font-weight:700;
    color:#183b59;
}

.registerRegulation .regFooter{
    margin-top:30px;
    padding-top:15px;
    border-top:1px solid #dce5ed;
    text-align:center;
    color:#617589;
    font-size:13px;
}

@media(max-width:600px){

    .registerRegulation{
        font-size:14px;
        line-height:1.4;
        padding-left:2px;
        padding-right:2px;
    }

    .registerRegulation h1{
        font-size:23px;
    }

    .registerRegulation h2{
        font-size:18px;
        margin-top:23px;
    }

    .registerRegulation .regLead{
        font-size:15px;
    }

}
/* =========================================================
   MOBILE — REJESTRACJA
   DODANE BEZ ZMIANY ISTNIEJĄCYCH KLAS
   ========================================================= */

@media (max-width:768px){

    .registerLayout{
        width:100%;
        max-width:none;
        margin:15px auto;
        padding:0 10px;
        box-sizing:border-box;

        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .registerFormBox,
    .registerMascotBox{
        width:100%;
        max-width:none;
        min-width:0;
        box-sizing:border-box;
    }

    .registerFormBox{
        padding:25px 20px;
    }

    .registerMascotBox{
        min-height:400px;
        padding:25px 20px;
    }

    .registerTopBar{
        gap:15px;
        flex-wrap:wrap;
    }

    .registerTopBar a{
        font-size:13px;
    }

    .registerLogo{
        max-width:280px;
    }

    .registerLead{
        margin-bottom:25px;
    }

    #registrationForm{
        margin-top:25px;
    }

    .avatarChooser{
        padding:16px;
        margin:20px 0;
    }

    .avatarButtons{
        flex-direction:column;
        gap:8px;
    }

    .avatarButton{
        width:100%;
    }

    .avatarGrid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:8px;
    }

    .avatarTabs{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .registerDocuments{
        width:100%;
    }

    .registerDocButton{
        width:100%;
        box-sizing:border-box;
    }

    .registerDocumentStage{
        position:absolute;
        inset:0;
    }

    .registerDocumentHeader{
        padding:18px;
        font-size:20px;
    }

    .registerDocumentBody{
        padding:18px;
    }

    .registerDocumentFooter{
        padding:18px;
    }

    .registerDocumentRow{
        gap:10px;
        align-items:flex-start;
    }

}
#registrationForm input.registerInvalid,
#registrationForm input.registerInvalid:focus,
.registerDocButton.registerInvalid{
    border:2px solid #d40000;
    box-shadow:0 0 0 3px rgba(212,0,0,.1);
}
.avatarPreview.registerInvalid img{
    border:2px solid #d40000;
    box-shadow:0 0 0 3px rgba(212,0,0,.1);
}
.registerSubmitError{
    margin:0 0 16px;
    padding:12px 14px;
    border:1px solid #d40000;
    border-radius:8px;
    background:#fff1f1;
    color:#9f1712;
    font-size:14px;
    font-weight:700;
}
.registrationSuccess{
    max-width:760px;
    margin:0 auto;
    text-align:center;
    line-height:1.6;
}
.registrationSuccessMascot{
    display:block;
    max-width:100%;
    width:auto;
    height:min(48vh,520px);
    margin:0 auto 12px;
    object-fit:contain;
}
.registrationSuccessCheck{
    margin-bottom:10px;
    color:#0b9f2a;
    font-size:60px;
    font-weight:900;
    line-height:1;
}
.registrationSuccess h2{
    margin:0 0 22px;
    font-size:30px;
    line-height:1.2;
}


/* =========================================================
   SUKCES REJESTRACJI
   ========================================================= */

.registrationSuccess{
    min-height:100%;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    padding:20px 30px 30px;
    text-align:center;
}

.registrationSuccess[hidden]{
    display:none;
}

.registrationSuccessMascot{
    display:block;
    width:auto;
    max-width:92%;
    height:min(58vh,700px);
    max-height:700px;
    margin:0 auto 10px;
    object-fit:contain;
}

.registrationSuccess p{
    max-width:560px;
    margin:8px auto;
}

.registrationSuccessBack{
    margin-top:28px;
    min-width:220px;
    height:46px;
    padding:0 24px;
    border:0;
    border-radius:9px;
    background:#2f73c8;
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.registrationSuccessBack:hover{
    background:#245fa9;
}

@media(max-width:800px){
    .registrationSuccess{
        justify-content:flex-start;
        padding:18px;
    }

    .registrationSuccessMascot{
        height:min(42vh,430px);
    }
}


/* =========================================================
   REJESTRACJA — PEŁNY TRYB SUKCESU
   ========================================================= */

.registerDocumentBody.registrationSuccessMode{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    min-height:0;
    padding:0;
    overflow:hidden;
}

.registerDocumentBody.registrationSuccessMode .registrationSuccess{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    max-width:none;
    margin:0;
    padding:28px 38px 34px;
    justify-content:space-evenly;
}

.registerDocumentBody.registrationSuccessMode .registrationSuccessMascot{
    flex:0 1 auto;
    height:auto;
    max-height:58%;
    width:auto;
    max-width:92%;
    margin:0 auto;
}

@media(max-width:800px){
    .registerDocumentBody.registrationSuccessMode{
        overflow-y:auto;
    }

    .registerDocumentBody.registrationSuccessMode .registrationSuccess{
        justify-content:flex-start;
        padding:20px 18px 28px;
    }

    .registerDocumentBody.registrationSuccessMode .registrationSuccessMascot{
        max-height:420px;
    }
}
