.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    min-height: 600px;
}

.z-index-1 {
    z-index: 1;
}

.text-shadow {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.form-animation {
    animation: slideUpFade 0.5s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    background-color: #fff;
}

.btn-primary {
    background-color: #3a4cd8 !important;
    border-color: #3a4cd8 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(58, 76, 216, 0.2) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #2e3eb3 !important;
    border-color: #2e3eb3 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(58, 76, 216, 0.3) !important;
}

form .btn, form button[type="submit"] {
    background-color: #3a4cd8 !important;
    border-color: #3a4cd8 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(58, 76, 216, 0.2) !important;
}

form .btn:hover, form button[type="submit"]:hover {
    background-color: #2e3eb3 !important;
    border-color: #2e3eb3 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(58, 76, 216, 0.3) !important;
}

.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.wave1 {
    animation: wave 18s linear infinite;
}

.wave2 {
    animation: wave 15s linear infinite;
    animation-delay: -5s;
    opacity: 0.3;
}

.wave3 {
    animation: wave 12s linear infinite;
    animation-delay: -2s;
    opacity: 0.2;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateY(0) scale(1);
    }
    50% {
        transform: translateX(-25%) translateY(10%) scale(1.2);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Responsywność ze stałymi szerokościami dla różnych breakpointów */
@media (min-width: 1200px) {
    .login-section .container {
        max-width: 1200px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .login-section .container {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .login-section .container {
        max-width: 720px;
    }

    .login-form-wrapper {
        padding: 2.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .login-form-wrapper {
        padding: 2rem !important;
    }

    .wave {
        height: 60%;
    }

    .card {
        min-height: auto;
    }
}

.social-buttons .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-buttons .btn:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.card .row {
    min-height: 600px;
    height: 100%;
}

.col-md-6 {
    display: flex;
    flex-direction: column;
}

.card .row .col-md-6:first-child {
    height: 100%;
}

.card {
    height: 100%;
    min-height: 600px;
}

.login-form-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    /* Zmiana struktury widoku na urządzeniach mobilnych */
    .card .row {
        flex-direction: column;
    }

    /* Zmniejszenie wysokości lewego panelu na małych ekranach */
    .card .row .col-md-6:first-child {
        min-height: 250px;
        max-height: 30vh;
    }

    /* Usunięcie "przyklejania" do dołu na małych ekranach */
    .card .row .col-md-6 {
        position: static;
    }

    /* Upewnienie się, że prawy panel jest widoczny */
    .card .row .col-md-6:last-child {
        flex: 1;
        min-height: 400px;
    }

    /* Zmniejszenie dodatkowych odstępów */
    .card-body {
        padding: 1.5rem !important;
    }

    /* Zmniejszenie rozmiaru czcionek na telefonach */
    .display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}
