/* Ogólne ustawienia */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

:root{
	--color-dark-blue: #323b71;
	--color-hover-dark-blue: #212a60;
	--color-light-blue: #dbe9ee;
	--color-bg-light-blue: #fafbff;
	--color-light-gray: #909297;
	--color-white: #ffffff;
	--color-gray: #272727;
	--large-font-size: 24px;
	--normal-font-size: 13px;
}

@font-face {
    font-family: 'AutopromPro';
    src: url('../fonts/AutopromPro.woff2') format('woff2'),
         url('../fonts/AutopromPro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background: linear-gradient(135deg, #323b71 0%, #212a60 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 16px;
    color: #fff;
}

/* Stylowanie karty */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 15px;
    padding: 20px;
}

.card-header {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

/* Stylowanie formularza i kontrolek */
.form-group {
    position: relative;
}

.form-group span.field-icon{
    position: absolute;
    right: 10px;
    top: 35px;
}

#registerForm .form-group span.field-icon{
    right: 25px;
}

.label, .form-control {
    display: block;
    width: 100%;
}

.label {
    margin-bottom: 10px;
}

.form-control {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: #fff;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #fff;
    outline: none;
}

/* Stylowanie przycisku */
.btn {
    background-color: #323b71;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #212a60;
}

/* Stylowanie komunikatów błędów */
.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-left: 20px;
}

.is-invalid {
    border-color: #dc3545;
}

/* Dodatkowe style */
.card, .form-control {
    color: white;
    font-size: 1rem;
}

.logo{
    margin-bottom:20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo h2{
    font-size: 32px;
    letter-spacing: 1px;
}

.logo p{
    font-size: 20px;
    letter-spacing: 1px;
}

.logo-text{
    width:175px;
    height:200px;
}

.logo-text img,.logo-text svg{
    object-fit:contain;
    max-width:100%;
    max-height:100%;
}

.text-white{
    color:white;
    text-decoration: none;
}

.alert-success{
    color: lightgreen;
    font-weight: 600;
    margin-left:20px;
    margin-right:20px;
}

/* Styl dla formularza rejestracji */
.card-register .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.card-register .form-group {
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 768px) {
    .card-register .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.jccaic{
    justify-content: center;
    align-items: center;
    margin-bottom:10px;
    display: flex;
}

.t-center{
    text-align: center;
    margin-top: 2.5px;
    margin-bottom: 2.5px;
}

.margin-auto{
    margin:auto;
}

.mm {
    margin-top:10px;
    margin-bottom:5px;
}

.passwordMatchInfo{
    max-width:100%;
}

#info-fixed-box{
    position: fixed; 
    left: 20px; 
    bottom: 20px;
    padding: 10px; 
    border-radius: 10px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid white;
}

.text-center{
    text-align: center;
}

#info-fixed-box p{
    margin-bottom:5px;
}

/* Ukrywanie domyślnego checkboxa */
.custom-checkbox {
    display: none;
}

/* Styl dla niestandardowego checkboxa */
.custom-checkbox + label {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 1px solid var(--color-dark-blue);
    position: relative;
    cursor: pointer;
	/* top:5px; */
}

/* Styl dla zaznaczonego checkboxa */
.custom-checkbox:checked + label::after {
    content: '✔'; /* Znak zaznaczenia */
    color: var(--color-dark-blue);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px; 
}

/* Styl dla niestandardowego checkboxa, gdy jest nieaktywny */
.custom-checkbox:disabled + label {
    background-color: #f0f0f0; 
    border: 1px solid #cccccc; 
    cursor: not-allowed; 
}

/* Styl dla etykiety niestandardowego checkboxa, gdy jest nieaktywny */
.custom-checkbox:disabled + label::after {
    color: #cccccc;  
}

.custom-form-row{
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.custom-form-row label{
    margin-right:5px;
}

.custom-form-row a{
    margin-left:5px;
    font-weight: 600;
    color:white;
}