/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff7417;
    /* Usunięcie overflow: hidden dla poprawy przewijania */
}

.container {
    position: relative;
    max-width: 460px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    overflow-y: auto; /* Dodano przewijanie */
    min-height: 500px; /* Minimalna wysokość dla poprawy widoczności */
}

.container .forms {
    display: flex;
    align-items: center;
    min-height: 460px; /* Użycie minimalnej wysokości zamiast stałej */
    width: 100%;
    transition: height 0.2s ease;
}

.container .form {
    width: 100%;
    padding: 30px;
    background-color: #fff;
    transition: margin-left 0.18s ease;
}

.container.active .login {
    margin-left: -50%;
    opacity: 0;
    transition: margin-left 0.18s ease, opacity 0.15s ease;
}

.container .signup {
    opacity: 0;
    transition: opacity 0.09s ease;
}

.container.active .signup {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.container.active .forms {
    min-height: 895px; /* Zmieniono na min-height */
}

.container .form .title {
    position: relative;
    font-size: 27px; /* Oryginalny rozmiar */
    font-weight: 600;
}

.form .title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 30px;
    background-color: #ff7417;
    border-radius: 25px;
}

.form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 30px;
}

.input-field input {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 5px 35px;
    border: none;
    outline: none;
    font-size: 16px; /* Oryginalny rozmiar */
    border-bottom: 2px solid #ccc;
    border-top: 2px solid transparent;
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid) {
    border-bottom-color: #ff7417;
}

.input-field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px; /* Oryginalny rozmiar */
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid)~i {
    color: #ff7417;
}

.input-field i.icon {
    left: 0;
}

.input-field i.showHidePw {
    right: 0;
    cursor: pointer;
    padding: 10px;
}

.form .checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

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

.checkbox-content input {
    margin-right: 10px;
    accent-color: #ff7417;
}

.form .text {
    color: #333;
    font-size: 14px; /* Oryginalny rozmiar */
}

.form a.text {
    color: #ff7417;
    text-decoration: none;
}

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

.form .button {
    margin-top: 35px;
}

.form .button input {
    border: none;
    color: #fff;
    font-size: 17px; /* Oryginalny rozmiar */
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 6px;
    background-color: #ff7417;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button input:hover {
    background-color: #ff7417;
}

.form .login-signup {
    margin-top: 30px;
    text-align: center;
}

/* New Styles for Input Groups */
.input-group {
    display: flex;
    justify-content: space-between;
}

.input-group .input-field {
    width: 50%;
}

/* Zmniejsz czcionkę o 20% dla urządzeń mobilnych */
@media (max-width: 768px) {
    .container .form .title {
        font-size: 21.6px; /* Zmniejszone o 20% */
    }

    .input-field input {
        font-size: 12.8px; /* Zmniejszone o 20% */
    }

    .input-field i {
        font-size: 18.4px; /* Zmniejszone o 20% */
    }

    .form .text {
        font-size: 11.2px; /* Zmniejszone o 20% */
    }

    .form .button input {
        font-size: 13.6px; /* Zmniejszone o 20% */
    }
}

.error {
    color: red;
    margin-top: 5px;
    padding: 5px;
}
