:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --accent: #171717;
    --accent-hover: #000000;
    --text-main: #18181b;
    --text-muted: #71717a;
    --border: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 11.25rem;
    /* Make room for the absolutely positioned logo */
    box-sizing: border-box;
}

.main-header {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.brand-logo {
    height: 102px;
    width: auto;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

.glass-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-main);
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-check-input {
    min-width: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--accent);
    cursor: pointer;
    margin-top: 0.15rem;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500;
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.35);
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.45);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.success-icon {
    font-size: 4.5rem;
    color: #10b981;
    margin-bottom: 0.5rem;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-container {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

a.btn-submit {
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .glass-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .form-control {
        font-size: 16px;
        padding: 0.75rem;
    }

    .checkbox-group {
        padding: 1rem;
        gap: 0.75rem;
    }

    .btn-submit {
        padding: 0.85rem 1rem;
    }
}