* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a2e;
    color: #e6e6e6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 58, 173, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(107, 33, 168, 0.1) 0%, transparent 20%);
}

.container {
    width: 100%;
    max-width: 1000px;
    background-color: rgba(22, 33, 62, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(67, 97, 238, 0.3);
    backdrop-filter: blur(10px);
}

.login-container, .content-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-container {
    text-align: center;
}

/* Kontener nagłówka z logo */
.header-wrapper {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 100px;
}

h1 {
    color: #4cc9f0;
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(76, 201, 240, 0.3);
    background: linear-gradient(45deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
    position: relative;
}

h2 {
    color: #4361ee;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-shadow: 0 1px 5px rgba(67, 97, 238, 0.3);
    z-index: 1;
    position: relative;
}

h3 {
    color: #4cc9f0;
    margin: 25px 0 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #4361ee;
    padding-bottom: 8px;
    width: 100%;
    text-shadow: 0 1px 3px rgba(76, 201, 240, 0.3);
}

.password-form {
    width: 100%;
    max-width: 400px;
}

.password-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #4361ee;
    border-radius: 8px;
    background-color: rgba(15, 52, 96, 0.8);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
    background-color: rgba(15, 52, 96, 0.9);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #3a0ca3, #4361ee);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    color: #f72585;
    margin-top: 15px;
    font-weight: bold;
    background-color: rgba(247, 37, 133, 0.1);
    padding: 12px;
    border-radius: 8px;
    display: block;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(247, 37, 133, 0.3);
}

.lock-timer {
    color: #ff9e00;
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 158, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    font-weight: bold;
    border: 1px solid rgba(255, 158, 0, 0.3);
}

.remember-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: rgba(15, 52, 96, 0.3);
    border-radius: 8px;
}

.remember-checkbox {
    margin-right: 10px;
    transform: scale(1.3);
    cursor: pointer;
}

.remember-label {
    font-size: 1rem;
    color: #b8b8b8;
    cursor: pointer;
}

.download-section {
    width: 100%;
    margin-bottom: 30px;
    background-color: rgba(15, 52, 96, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.server-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.download-btn {
    padding: 15px;
    background-color: rgba(15, 52, 96, 0.8);
    border: 2px solid #4361ee;
    border-radius: 8px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background-color: rgba(67, 97, 238, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    border-color: #4cc9f0;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.download-btn:hover::after {
    left: 100%;
}

.server-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    z-index: 1;
}

.file-info {
    font-size: 0.9rem;
    color: #b8b8b8;
    z-index: 1;
}

.logout-btn {
    margin-top: 30px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #f72585, #b5179e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #b5179e, #f72585);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
}

.attempts-warning {
    color: #ff9e00;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    padding: 8px;
    background-color: rgba(255, 158, 0, 0.1);
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

.logo {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #4cc9f0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.info-text {
    color: #b8b8b8;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 500px;
}

/* Logo kwadratowe w lewym górnym rogu */
.corner-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Kwadratowy kontener na logo */
.logo-square {
    width: 150px;
    height: 150px;
    background-color: rgba(22, 33, 62, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(76, 201, 240, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* Styl dla dynamicznie generowanych programów */
.program-container {
    width: 100%;
    margin-bottom: 30px;
    background-color: rgba(15, 52, 96, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(67, 97, 238, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

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

.program-title {
    color: #4cc9f0;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.program-description {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Styl dla informacji o braku danych */
.no-data-message {
    text-align: center;
    padding: 40px;
    color: #ff9e00;
    background-color: rgba(255, 158, 0, 0.1);
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 158, 0, 0.3);
}

/* Responsywność dla logo */
@media (min-width: 769px) {
    .logo-square {
        width: 200px;
        height: 200px;
    }
    
    .header-wrapper {
        padding-left: 240px;
        padding-top: 40px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .corner-logo {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto 20px auto;
        justify-content: center;
        width: 100%;
    }
    
    .logo-square {
        margin: 0 auto;
    }
    
    .container {
        border-radius: 0;
    }
    
    .login-container, .content-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .server-buttons {
        grid-template-columns: 1fr;
    }
    
    .header-wrapper {
        padding-top: 180px;
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .logo-square {
        width: 140px;
        height: 140px;
        padding: 8px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .password-input {
        font-size: 1rem;
        padding: 12px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .header-wrapper {
        padding-top: 160px;
    }
}

/* Efekt błyszczący dla kontenera */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0, #4361ee);
    z-index: 2;
}

/* Animacja odliczania czasu */
@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}