:root {
    --primary-red: #ff3c3c;
    --dark-bg: #0b0b0b;
    --glass-bg: rgba(0, 0, 0, 0.75);
    --input-bg: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: white;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
        url("zdjecia/back2.png") center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.main-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    width: 100%;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

h1 {
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.warning {
    color: #ffaa00;
    margin-top: 10px;
    font-weight: bold;
}

/* Układ formularza */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ccc;
}

.required {
    color: var(--primary-red);
}

/* Styl wejść */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
    transition: all 0.3s;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.1);
}

/* Etaty i Checkboxy */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--input-bg);
    padding: 15px;
    border-radius: 6px;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Przycisk */
.form-footer {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.submit-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: #e62e2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 60, 60, 0.3);
}

/* Stopka */
.credits {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Link w kolorze firmowym */
.agreements a {
    color: var(--primary-red) !important;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}

.agreements a:hover {
    border-bottom: 1px solid var(--primary-red);
    filter: brightness(1.2);
}

/* Styl dla checkboxów i radio, żeby nie były zbyt małe */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-red);
    /* Zmienia kolor kropki/ptaszka na czerwony */
    transform: scale(1.1);
    cursor: pointer;
}

/* Style dla głównego przycisku Discord */
.discord-btn-full {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: #5865F2;
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(88, 101, 242, 0.2);
}

.discord-btn-full svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.discord-btn-full:hover {
    background-color: #4752c4;
    box-shadow: 0 6px 8px rgba(88, 101, 242, 0.3);
}

.discord-btn-full:active {
    transform: scale(0.98);
}

/* Styl dla przycisku wylogowania */
.discord-disconnect {
    color: #dc3545;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.discord-disconnect:hover {
    background: rgba(220, 53, 69, 0.1);
}

.google-btn-full {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    color: #3c4043;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.1s;
    border: 1px solid #dadce0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.google-btn-full svg {
    width: 24px;
    height: 24px;
}

.google-btn-full:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.google-btn-full:active {
    transform: scale(0.98);
}

.live-error {
    color: #ff4444;
    font-size: 0.85em;
    display: none;
    margin-top: 5px;
    font-weight: bold;
}

.input-error-border {
    border-color: #ff4444 !important;
    outline: none;
}

.backend-errors {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.backend-errors ul {
    margin: 10px 0 0 20px;
    color: #ff4444;
    font-weight: bold;
}

.success-box {
    text-align: center;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.success-box h2 {
    color: #28a745;
    margin-bottom: 10px;
}