body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: transparent;
}

/* Animacje */
.animated-body {
    animation: fadeInBody 1.5s ease-in;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
    opacity: 0;
    animation: slideInTitle 1.2s ease-out forwards;
}

@keyframes slideInTitle {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.main-content {
    padding: 20px;
    animation: fadeInBody 1.5s ease-in;
}

.logo-center {
    text-align: center;
    margin: 20px 0;
}

.logo-center img {
    height: 200px;
    max-width: 100%;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)); /* lekki cień dla kontrastu */
    transition: transform 0.3s ease;
}


/* Styl przycisków */
a {
    color: #4b0082;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.home-button {
    position:fixed;
    top: 20px;
    left: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #6e00ff, #a466ff);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(110, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.home-button:hover {
    background: linear-gradient(135deg, #a466ff, #6e00ff);
    box-shadow: 0 6px 20px rgba(110, 0, 255, 0.4);
    transform: translateY(-2px);
}

#backgroundCanvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1 !important;
    pointer-events: none;
}
.form-input {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border 0.2s ease;
    margin-top: 6px;
}


.form-input:focus {
    border-color: #6e00ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.15);
}

.form-section label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
    text-align: left;
}

.upload-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;  /* <-- było np. 700px */
    width: 100%;
    margin: 40px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.login-button {
    background: linear-gradient(135deg, #6e00ff, #a466ff);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(110, 0, 255, 0.3);
    transition: all 0.3s ease;
    margin-top: 5px;
    cursor: pointer;
}

.login-button:hover {
    background: linear-gradient(135deg, #a466ff, #6e00ff);
    box-shadow: 0 6px 20px rgba(110, 0, 255, 0.4);
    transform: translateY(-2px);
}


.auth-button {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #6e00ff, #a466ff);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(110, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: linear-gradient(135deg, #a466ff, #6e00ff);
    box-shadow: 0 6px 20px rgba(110, 0, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== Loader overlay ===== */
#loading-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.7);
  display:none; align-items:center; justify-content:center;
  z-index:9999;
}
#loading-overlay.show{ display:flex; }
#loading-overlay img{
  width:66px; height:88px;
  animation: spin 1.8s linear infinite;
  filter: drop-shadow(0 0 12px rgba(0,0,0,.4));
}
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
