@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --background-color: #F2F2F2;
    --primary-color: #007acc;
    --accent-color: #D9D9D9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    margin: 0;
}

header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* wysokość ekranu minus wysokość headera */
    padding: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a:not(.btn-secondary):not(.btn-primary) {
    margin-right: 1.5rem;
}

.nav-links a:not(.nav-links a) {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    color: #007acc;
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 16px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 8px 16px;
    border-radius: 20px;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
}

.login-container {
    background-color: white;
    padding: 1.8rem;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    position: relative;
    margin: 0 auto;
}

h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

p {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

input {
    font-family: "Poppins", sans-serif;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.forgot-password {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    text-align: right;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.login-button {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    width: 100%;
    padding: 0.75rem;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
}

.register {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
}

a {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    color: #007acc;
    text-decoration: none;
}

#error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    text-align: center;
    color: #333;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #666;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cancel-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    background-color: #f2f2f2;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-btn:hover {
    background-color: #e5e5e5;
}

.confirm-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    background-color: #007acc;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.confirm-btn:hover {
    background-color: #0069b3;
}

.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0;
}

.verification-input {
    width: 40px !important;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin: 0;
    padding: 0;
}

.verification-input:focus {
    border-color: #007acc;
    outline: none;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: none;
}

.modal-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-button.secondary {
    background-color: transparent;
    color: #007acc;
    border: 1px solid #007acc;
}

.modal-button.secondary:hover {
    background-color: rgba(0, 122, 204, 0.1);
}

.password-container {
    position: relative;
    width: 100%;
    margin-bottom: 0.8rem;
}

.password-container input {
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.toggle-password2 {
    cursor: pointer;
    position: relative;
    top: -45px; 
    right: 10px;
    float: right;
    width: 20px; 
    height: 20px; 
    color: #007acc;
}

.toggle-password:hover {
    color: #0056b3;
}

.verification-modal {
    max-width: 400px;
    width: 90%;
}

.verification-modal h2 {
    color: #007acc;
    margin-bottom: 1rem;
}

.error {
    border-color: #ff4444 !important;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    header {
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}