
body {
    background: linear-gradient(135deg, #e3f2fd, rgb(108, 159, 201));
    background-attachment: fixed;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.waves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: -3;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23007bb8" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23007bb8" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23007bb8"/></svg>') repeat-x;
    animation: wave 15s linear infinite;
}

.wave:nth-child(2) {
    animation: wave 20s linear infinite reverse;
    opacity: 0.7;
}

.wave:nth-child(3) {
    animation: wave 25s linear infinite;
    opacity: 0.3;
}

.background {
    position: fixed;
    width: 100%;
    overflow: hidden;
    z-index: -4;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatUp 10s infinite ease-in;
}

.bubble:nth-child(1) { left: 10%; width: 60px; height: 60px; animation-delay: 0s; }
.bubble:nth-child(2) { left: 30%; width: 40px; height: 40px; animation-delay: 2s; }
.bubble:nth-child(3) { left: 50%; width: 80px; height: 80px; animation-delay: 4s; }
.bubble:nth-child(4) { left: 70%; width: 50px; height: 50px; animation-delay: 1s; }
.bubble:nth-child(5) { left: 90%; width: 30px; height: 30px; animation-delay: 3s; }

.image-behind-form {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    max-width: 90%;
    margin-top: -50px;
    pointer-events: none;
}

.image-behind-form img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.login-container {
    width: 370px;  
    background: white;
    margin: 210px auto 60px;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.login-container h2 {
    text-align: center;
    color: #0d447a;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: border 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #1565c0;
    background-color: #fff;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .lucide {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    pointer-events: auto;
}

.recover-password {
    display: block;
    text-align: right;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    background-color: #1565c0;
    color: white;
    font-weight: bold;
    font-size: 15px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background-color: #0d47a1;
}

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 700px;
    background: white;
    color: #333;
    padding: 20px 25px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-size: 14px;
    line-height: 1.5;
    display: none;
    z-index: 999;
    animation: fadeIn 0.8s ease forwards;
}

#cookie-banner .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
}

.input-error {
    border: 2px solid red !important;
    background-color: #ffe6e6;
}

.error-message {
    color: #d32f2f;
    background: #fdecea;
    border: 1px solid #f44336;
    padding: 10px 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    animation: shake 0.3s ease;
}

.custom-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    animation: shake 0.6s ease;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #0d47a1;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #1565c0;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

form select {
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231565c0" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form select:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
    outline: none;
}

.input-error {
    border: 2px solid #e53935 !important;
    animation: shake 0.3s ease;
}

.legal-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: white;
  margin: auto;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  color: #0d447a;
  margin-top: 0;
}

.modal-content .close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}
.modal-content .close:hover {
  color: black;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #007BFF;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-6px); }
    100% { transform: translateX(0); }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-1000px) scale(1.2); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) translateX(-50%); }
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

@media (max-width: 767px) {
    #cookie-banner {
        font-size: 13px;
        padding: 16px 18px;
        width: 85%;   
    }

    .login-container {        
        width: 85%;
        padding: 30px 20px;
        margin: 160px auto 60px;
    }

    .modal-content {
        width: 60%;
        font-size: 13px;
    }
}

