*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* Miejsce na fixed footer */
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #3a8dde, #6ec5ff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
#header-title{
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
   font-size: 60px;
   font-weight: 600;
   color: #ffffff;
   margin-bottom: 60px;
   white-space: nowrap;
  }
  .main{
    background-color: #ffffff;
    width: 450px;
   
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 19px;
  }

  .input    {
    width: 100%;
    height: 48px;
    padding: 12px;
    border-radius: 12px;
    font-size:16px;
  }

  .buttons{
    width: 100%;
    height: 48px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 16px;
  }

     .remember-password{
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-top: 16px;
     height: 20px;
     width: 100%;
   }

   .remember-password input[type="checkbox"]{
     width: auto;
     height: auto;
     margin-right: 8px;
     transform: scale(1.2);
     accent-color: #3a8dde;
   }

   .remember-password label{
     font-size: 14px;
     color: #666;
     cursor: pointer;
     flex: 1;
   }

   .remember-password a{
     font-size: 14px;
     color: #3a8dde;
     text-decoration: none;
     font-weight: 500;
   }

   .remember-password a:hover{
     text-decoration: underline;
   }
.buttons{
    background-color: #3a8dde;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
}
.buttons:hover{
    background-color: #3a8dde;
    transform: scale(1.05);
    transition: transform 0.5s ease;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    color: #ffffff;
}   
.register-link{
   text-decoration: none;
    color: #3a8dde;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
}
.register-link:hover{
    text-decoration: underline;
}
.input:focus{
    outline: none;
    border: 2px solid #3a8dde;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.container{
    animation: fadeIn 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    padding-bottom: 120px; /* Zwiększony padding dla stopki */
}
@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.logowanie{
    display: block;
}
.rejestracja{
    display: none;
}
.reset-password{
    display: none;
}

.reset-password #header-title{
    font-size: 50px;
    white-space: nowrap;
}


.terms-agreement{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
}

.terms-agreement input[type="checkbox"]{
    width: auto;
    height: auto;
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: #3a8dde;
    cursor: pointer;
}

.terms-agreement label{
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
}

.login-link{
    text-decoration: none;
    color: #3a8dde;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
}

.login-link:hover{
    text-decoration: underline;
}

footer, .footer-text{
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    color: #ffffff !important;
    padding: 20px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
}

footer p, .footer-text p{
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.alerts{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    height: 200px;
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1c1e20;
    color: #ffffff;
    font-size: 16px;
    border-radius: 16px;
    display: none;
    z-index: 1000000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Extra Small Devices (Phones) - 320px to 480px */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
        padding-bottom: 100px;
    }
    
    .container {
        max-width: 100%;
        padding: 10px;
        padding-bottom: 100px;
    }
    
    #header-title {
        font-size: 32px;
        margin-bottom: 30px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .reset-password #header-title {
        font-size: 28px;
    }
    
    .main {
        width: 100%;
        max-width: 350px;
        padding: 20px;
        gap: 15px;
    }
    
    .input {
        height: 44px;
        font-size: 16px;
        padding: 10px;
    }
    
    .buttons {
        height: 44px;
        font-size: 16px;
    }
    
    .remember-password {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: auto;
    }
    
    .remember-password label {
        font-size: 13px;
    }
    
    .remember-password a {
        font-size: 13px;
    }
    
    .terms-agreement label {
        font-size: 13px;
    }
    
    .alerts {
        width: 90%;
        max-width: 320px;
        height: auto;
        min-height: 180px;
        padding: 15px;
        margin: 10px;
    }
    
    .alerts h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .alerts p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    footer, .footer-text {
        padding: 15px 10px !important;
        font-size: 12px !important;
    }
}

/* Small Devices (Large Phones) - 481px to 767px */
@media screen and (min-width: 481px) and (max-width: 767px) {
    body {
        padding: 15px;
        padding-bottom: 100px;
    }
    
    .container {
        max-width: 100%;
        padding: 15px;
        padding-bottom: 100px;
    }
    
    #header-title {
        font-size: 40px;
        margin-bottom: 40px;
    }
    
    .reset-password #header-title {
        font-size: 36px;
    }
    
    .main {
        width: 100%;
        max-width: 400px;
        padding: 25px;
    }
    
    .alerts {
        width: 85%;
        max-width: 400px;
        padding: 18px;
    }
}

/* Medium Devices (Tablets) - 768px to 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 600px;
        padding: 25px;
        padding-bottom: 120px;
    }
    
    #header-title {
        font-size: 50px;
        margin-bottom: 50px;
    }
    
    .reset-password #header-title {
        font-size: 45px;
    }
    
    .main {
        width: 100%;
        max-width: 480px;
        padding: 30px;
    }
    
    .alerts {
        width: 80%;
        max-width: 450px;
        padding: 20px;
    }
}

/* Large Devices (Desktops) - 1024px to 1439px */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 550px;
        padding: 30px;
    }
    
    #header-title {
        font-size: 55px;
        margin-bottom: 55px;
    }
    
    .reset-password #header-title {
        font-size: 48px;
    }
    
    .main {
        width: 450px;
        padding: 32px;
    }
}

/* Extra Large Devices (Large Desktops) - 1440px and up */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 600px;
        padding: 35px;
    }
    
    #header-title {
        font-size: 65px;
        margin-bottom: 65px;
    }
    
    .reset-password #header-title {
        font-size: 55px;
    }
    
    .main {
        width: 500px;
        padding: 40px;
    }
    
    .alerts {
        max-width: 550px;
        padding: 25px;
    }
}

/* Landscape Orientation for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        padding-bottom: 80px;
    }
    
    .container {
        padding-bottom: 80px;
    }
    
    #header-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .reset-password #header-title {
        font-size: 24px;
    }
    
    .main {
        padding: 15px;
        gap: 10px;
    }
    
    .input {
        height: 40px;
    }
    
    .buttons {
        height: 40px;
        margin-top: 10px;
    }
    
    footer, .footer-text {
        padding: 10px !important;
        font-size: 12px !important;
    }
}