* {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 500;
    
  }
body{
    margin: 0px;
}

#header{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
    justify-self: center
}
hr {
    width: 100%;
    border: none;
    height: 4px;
    background-color: #ff7a3d;

}
#register-page{
    display: flex;
    justify-content: center;
    align-items: center;
}


#register {
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: white;
    box-shadow: 0px 0px 19px -5px rgba(255, 122, 61, 1);
    border: #ff7a3d solid 2px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    position: relative;
}
input {
    width: 100%;
    height: 50px;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #cccccc9e;
    outline-color: #cccccc9e;
    border-radius: 8px;
    transition: border-color 0.4s ease, outline-color 0.4s ease; /* Dodaj tę linię */
    font-size:16px;
}
input:hover{
    border-color: #ff7a3d;
    outline-color: #ff7a3d;
    border-radius: 8px;
}
button {
    width: 100%;
    height: 50px;
    padding: 10px;
    margin: 10px 0;
    background-color: rgba(255, 122, 61, 1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;

    font-weight: 600;
    font-size: 20px;
}

a {
    text-decoration: none;
    color: rgba(255, 122, 61, 1);
}
h2{
    font-weight: 600;
    font-size: 35px;
    margin: 0px;
    color: #ff7a3d;
}
p{
    margin: 5px;
}
#forgot{
    margin: 10px;
}
input::placeholder{
    color: black;
}

#language {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    margin-top: 40px;
}

.flag-icon {
    padding: 0 5px;
    transition: transform 250ms;
}

.flag-icon:hover {
    transform: translateY(-4px);
    cursor: pointer;
}
.language-selector {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}

.language-icon {
    margin-left: 50%;
    margin-top: 65%;
    cursor: pointer;
}

.flags-container {
    position: absolute;
    top: 36%;
    margin-left: 185%;
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);

}

.flags-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.flag {
    width: 46px;
    height: 46px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.flag:hover {
    transform: scale(1.1);
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

input.invalid {
    border-color: red;
    outline-color: red;
}
#account-type-buttons {
    display: flex;
    flex-direction: column; /* Przyciski ułożone pionowo */
    gap: 10px; /* Odstęp między przyciskami */
    margin: 20px 0;
    width: 100%;
}

#account-type-buttons button {
    width: 100%; /* Przyciski zajmują całą dostępną szerokość */
    background-color: #ff7a3d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}



.account-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Strzałka do cofania */
/* Strzałka do cofania */
/* Back arrow */
#backArrow {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    display: none; /* Hidden by default */
}

/* Stage dots */
/* Kontener na kropki */
#stageDots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Kropki */
/* Animacja kropek */
.dot {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.dot.active {
    background-color: #ff7a3d;
    transform: scale(1.2);
    animation: pulse 1.5s infinite ease-in-out;
}

/* Linia łącząca kropki */
.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 0;
    height: 2px;
    background-color: #ff7a3d;
    transform: translateY(-50%);
    transition: width 0.5s ease;
    display: none;
}

.dot.active.active-next::after {
    display: block;
    width: 18px; /* Skrócona linia o 5px */
}

/* Ukryj linię dla pierwszej kropki */
.dot:first-child::after {
    display: none;
}

/* Animacja pulsowania */
@keyframes pulse {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Etapy rejestracji */
.stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wymagania dotyczące hasła */
.passwordRequirements {
    text-align: left;
    width: 100%;
}

.passwordRequirements ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    display: block;
}

.passwordRequirements li {
    color: #cccccc9e;  /* Szary kolor początkowy */
    text-align: left;
    display: block;
    font-size: 16px;
    padding: 10px 0;
}

.passwordRequirements li.valid {
    color: #ff7a3d;  /* Kolor, gdy wymaganie jest spełnione */
}

.passwordRequirements .icon-check {
    margin-right: 10px;
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
}

.passwordRequirements .icon-check.checked {
    color: #ff7a3d;  /* Kolor, gdy ikona jest zaznaczona */
    transform: scale(1.2);
}

.passwordRequirements .icon-check.unchecked {
    color: #aaa;  /* Kolor, gdy ikona nie jest zaznaczona */
    transform: scale(1);
}


#Firstname, #Lastname{
    width: 50%;
    margin-right: 10px;
}
#Lastname{
    margin-right: 0px;
}
#input-container-name{
    display: flex;
    justify-content: center;
    align-content: center;
}
#input-container-phone{
    display: flex;
    justify-content: center;
    align-content: center;
}
#prefix{
    width: 50%;
    margin-right: 10px;
    float: left;
}
#Phonenumber{
    width: 50%
}

.dropdown {
    position: absolute;
    left: 7%;
    top: 66%; /* Ustawienie dropdowna dokładnie pod inputem */ 
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 40%;
}
.dropdown div {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown div:hover {
    background: #ff7a3d;
    color: white;
}



/* Podświetlenie podczas wpisywania */
input:focus {
    border-color: #ff7a3d;
    outline-color: #ff7a3d;
}

/* Border pozostaje kolorowy, gdy input nie jest pusty */
input.filled {
    border-color: #ff7a3d;
    outline-color: #ff7a3d;
}
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    color: #333;
}
.icon-check {
    margin-right: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 20px;
    color: #aaa;
}
input[type="checkbox"] {
    display: none;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-grow: 1;
}
.checkbox-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

a:hover {
    text-decoration: underline;
}
.loginlink{
    color: #ff7a3d;
}
#nip{
    margin-bottom: 30px;
}


#passwordMatchError {
    color: #ff7a3d; /* Change the color to #ff7a3d */
    display: none; /* Keep this to hide it initially */
}

#checkboxError, #companyCheckboxError {
    color: #ff7a3d;
    font-size: 14px;
    margin: 10px 0;
    padding: 5px;
    text-align: center;
    transition: all 0.3s ease;
}
#companypasswordMatchError{
    color: #ff7a3d;

}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-radius: 5px;
}

.checkbox-label {
    font-size: 16px;
}

.checkbox-label a {
    color: #ff7a3d;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}